1
This commit is contained in:
@@ -196,7 +196,7 @@ class SkuController extends BaseController
|
|||||||
$file = uniqid() . '.' . $drawing->getExtension();
|
$file = uniqid() . '.' . $drawing->getExtension();
|
||||||
copy($drawing->getPath(), $dir . $file);
|
copy($drawing->getPath(), $dir . $file);
|
||||||
|
|
||||||
$images[$row] = '/upload/images/' . $file;
|
$images[$row] = 'upload/images/' . $file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $images;
|
return $images;
|
||||||
@@ -207,7 +207,7 @@ class SkuController extends BaseController
|
|||||||
*/
|
*/
|
||||||
public function template(Request $request): Response
|
public function template(Request $request): Response
|
||||||
{
|
{
|
||||||
$filePath = runtime_path() . '\upload\import_post.xlsx';
|
$filePath = runtime_path() . '\upload\import.xlsx';
|
||||||
var_dump($filePath);
|
var_dump($filePath);
|
||||||
|
|
||||||
if (!file_exists($filePath)) {
|
if (!file_exists($filePath)) {
|
||||||
|
|||||||
@@ -118,6 +118,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['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