产品导入,帖子审核
This commit is contained in:
@@ -193,7 +193,7 @@ class SkuController extends BaseController
|
|||||||
$data['code'] = $this->service->generateUniqueCode();
|
$data['code'] = $this->service->generateUniqueCode();
|
||||||
$data['brand'] = $data['brand'] ?: '西门子';
|
$data['brand'] = $data['brand'] ?: '西门子';
|
||||||
$data['price'] = $data['price'] ?: 0;
|
$data['price'] = $data['price'] ?: 0;
|
||||||
$data['status'] = $data['status'] ?? 2;
|
$data['status'] = $data['status'] ?? 1;
|
||||||
|
|
||||||
// 图片
|
// 图片
|
||||||
//$data['main_image'] = $rowImages[$row] ?? null;
|
//$data['main_image'] = $rowImages[$row] ?? null;
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ class PostService
|
|||||||
if(empty($user->latitude) || empty($user->longitude) || empty($user->mobile)){
|
if(empty($user->latitude) || empty($user->longitude) || empty($user->mobile)){
|
||||||
throw new BusinessException('请补全个人中心的门店位置及电话');
|
throw new BusinessException('请补全个人中心的门店位置及电话');
|
||||||
}
|
}
|
||||||
$data['status'] = 2;
|
$data['status'] = 1;
|
||||||
$data['latitude'] = $user->latitude;
|
$data['latitude'] = $user->latitude;
|
||||||
$data['longitude'] = $user->longitude;
|
$data['longitude'] = $user->longitude;
|
||||||
$data['location_name'] = $user->location_name;
|
$data['location_name'] = $user->location_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user