|
|
@@ -47,26 +47,4 @@ class InitController extends Controller
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //可以删除
|
|
|
- public function actionUpdateGhs()
|
|
|
- {
|
|
|
- ini_set('memory_limit', '2045M');
|
|
|
- set_time_limit(0);
|
|
|
- $ghsList = GhsClass::getAllByCondition(['id>' => 0], null, '*', null, true);
|
|
|
- if (!empty($ghsList)) {
|
|
|
- foreach ($ghsList as $ghs) {
|
|
|
- $shopId = $ghs->shopId;
|
|
|
- $shop = ShopClass::getById($shopId, true);
|
|
|
- if (!empty($shop)) {
|
|
|
- $mobile = $shop->mobile;
|
|
|
- if (!empty($mobile)) {
|
|
|
- $ghs->mobile = $mobile;
|
|
|
- $ghs->save();
|
|
|
- echo $mobile . ' ' . $ghs->id . " ok \n";
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
}
|