|
|
|
@ -12,8 +12,8 @@ declare (strict_types=1); |
|
|
|
|
|
|
|
|
|
namespace app\admin\controller; |
|
|
|
|
|
|
|
|
|
use think\response\Json; |
|
|
|
|
use think\facade\Db; |
|
|
|
|
use think\response\Json; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 商城管理 |
|
|
|
@ -63,8 +63,8 @@ class Goods extends Controller |
|
|
|
|
} |
|
|
|
|
$list = Db::connect("dataCenterMysql")->table('goods_sku') |
|
|
|
|
->where($where) |
|
|
|
|
->order($sort." ".$order) |
|
|
|
|
->paginate($this->request->param('per_page', 15))->each(function ($item, $key){ |
|
|
|
|
->order($sort, $order) |
|
|
|
|
->paginate($this->request->param('per_page', 15))->each(function ($item, $key) { |
|
|
|
|
$item['create_time'] = date("Y-m-d H:i:s", $item['create_time']); |
|
|
|
|
$item['update_time'] = date("Y-m-d H:i:s", $item['update_time']); |
|
|
|
|
$item['channel'] = config('app.platformList')[$item['channel']] ?? ""; |
|
|
|
@ -74,11 +74,4 @@ class Goods extends Controller |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|