浏览代码

更新客户

shish 1 年之前
父节点
当前提交
4ab77e43e5
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      console/controllers/CustomController.php

+ 3 - 0
console/controllers/CustomController.php

@@ -640,6 +640,9 @@ U兰花坊15860453349
                 if (!empty($hasShop)) {
                     noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,手机号已经存在了", '15280215347');
                     $transaction->rollBack();
+                    $hdShopId = $hasShop->id;
+                    GhsClass::build($masterShopId, $hdShopId);
+                    $transaction->commit();
                     continue;
                 }
                 $has = ApplyClass::getByCondition(['mobile' => $mobile]);