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