This commit is contained in:
2025-12-13 17:25:47 +08:00
parent ba4558821b
commit e638d3cae2
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -196,7 +196,7 @@ class SkuController extends BaseController
$file = uniqid() . '.' . $drawing->getExtension();
copy($drawing->getPath(), $dir . $file);
$images[$row] = '/upload/images/' . $file;
$images[$row] = 'upload/images/' . $file;
}
}
return $images;
@@ -207,7 +207,7 @@ class SkuController extends BaseController
*/
public function template(Request $request): Response
{
$filePath = runtime_path() . '\upload\import_post.xlsx';
$filePath = runtime_path() . '\upload\import.xlsx';
var_dump($filePath);
if (!file_exists($filePath)) {
+1
View File
@@ -118,6 +118,7 @@ class PostService
if(empty($user->latitude) || empty($user->longitude) || empty($user->mobile)){
throw new BusinessException('请补全个人中心的门店位置及电话');
}
$data['status'] = 2;
$data['latitude'] = $user->latitude;
$data['longitude'] = $user->longitude;
$data['location_name'] = $user->location_name;