Ver Fonte

账号详情新增level字段

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

+ 2 - 2
app/controller/UserInfo.php

@@ -90,7 +90,7 @@ class UserInfo extends BaseController
         $list = Db::name("account")->alias("a")
             ->leftJoin("user b", "a.id=b.account_id and b.status=1")
             ->where(["a.id" => $post['id'], "a.is_del" => 0])
-            ->field("a.id,a.username,a.mobile,a.source,a.status,b.nickname,b.sex,b.email,a.addtime,a.updatetime")
+            ->field("a.id,a.username,a.mobile,a.source,a.status,b.nickname,b.sex,b.email,a.addtime,a.updatetime,a.level")
             ->findOrEmpty();
         if (empty($list)) {
             return json_show(1004, "未找到用户信息");
@@ -386,7 +386,7 @@ class UserInfo extends BaseController
             'companyArr|关联公司' => 'requireIf:level,2|requireIf:level,3|array',
         ]);
         if ($validate->check($post) == false) return json_show(1004, $validate->getError());
-        Db::startTrans();
+
         $uiq = Db::table("sys_account")->field('id')->where(["mobile" => $post['mobile']])->find();
         if ($uiq)  return json_show(1002, "手机号已注册!");