Ver Fonte

添加供应商账号优化

wufeng há 2 anos atrás
pai
commit
c20ccfc925
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      app/controller/UserInfo.php

+ 4 - 4
app/controller/UserInfo.php

@@ -636,7 +636,7 @@ class UserInfo extends BaseController
                             "account_id" => $reuslt,
                             "companyCode" => $company['companyCode'],
                             "companyName" => $company['companyName'],
-                            "company_type" => $company['company_type'],
+                            "company_type" => 1,
                             "is_main" => $company['is_main'],
                             "status" => 1,
                             "is_del" => 0,
@@ -648,15 +648,15 @@ class UserInfo extends BaseController
                     if ($company_insert) Db::name('account_company')->insertAll($company_insert);
 
                     Db::commit();
-                    return json_show(0, "注册成功", ["userid" => $reuslt, "nickname" => $post['nickname']]);
+                    return json_show(0, "添加供应商账号成功", ["userid" => $reuslt, "nickname" => $post['nickname']]);
                 }
             }
             Db::rollback();
-            return json_show(1002, "注册失败");
+            return json_show(1002, "添加供应商账号失败");
 
         } catch (Exception $e) {
             Db::rollback();
-            return json_show(1002, "注册失败," . $e->getMessage());
+            return json_show(1002, "添加供应商账号失败," . $e->getMessage());
         }
 
     }