|
|
@@ -17,7 +17,12 @@ class ShopController extends Controller
|
|
|
foreach ($list as $shop) {
|
|
|
$shopId = $shop->id;
|
|
|
$dist = $shop->dist ?? '';
|
|
|
- GhsClass::updateByCondition(['shopId' => $shopId], ['dist' => $dist]);
|
|
|
+ if (!empty($dist)) {
|
|
|
+ GhsClass::updateByCondition(['shopId' => $shopId], ['dist' => $dist]);
|
|
|
+ } else {
|
|
|
+ echo $shop->shopName . "没有找到区域信息\n";
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|