Эх сурвалжийг харах

style 与 introStyle 写死

shizhongqi 4 жил өмнө
parent
commit
8e942b1ace

+ 7 - 5
console/controllers/CustomController.php

@@ -153,21 +153,22 @@ class CustomController extends Controller
             $transaction = $connection->beginTransaction();
 
             $customerInfo = explode('_', $customer);
+            $shopName = $customerInfo[0];
+            $mobile = $customerInfo[1];
 
             $post = []; // 组织表单数据
             $post['introSjId'] = $customerInfo[2];
             $post['introShopId'] = $customerInfo[3];
             $post['introSjName'] = $customerInfo[4];
             //$post['ghsShopAdminId'] = $customerInfo[5]; // 取供应商的员工帐号id
-
-            $shopName = $customerInfo[0];
             $post['name'] = $shopName;
+            $post['mobile'] = $mobile;
+
             if (empty($shopName)) {
                 Yii::info('名称不能为空');
                 continue;
             }
-            $mobile = $customerInfo[1];
-            $post['mobile'] = $mobile;
+
             if (stringUtil::isMobile($mobile) == false) {
                 Yii::info('请填写正确手机号');
                 continue;
@@ -213,7 +214,8 @@ class CustomController extends Controller
             $post['long'] = isset($post['longitude']) ? $post['longitude'] : '';// TODO
             $post['lat'] = isset($post['latitude']) ? $post['latitude'] : '';// TODO
             $post['from'] = ApplyClass::FROM_RETAIL;
-            $post['style'] = SjClass::STYLE_RETAIL;
+            $post['style'] = SjClass::STYLE_RETAIL; //零售店
+            $post['introStyle'] = SjClass::STYLE_SUPPLIER; //
 
             //增加或更新申请
             $respond = ApplyService::replaceRetail($post);