Browse Source

去掉simplemobile

lizhen_gitee 7 months ago
parent
commit
2f7842e842

+ 1 - 2
application/admin/lang/zh-cn/user/user.php

@@ -8,8 +8,7 @@ return [
     'Introcode'              => '邀请码',
     'Password'               => '密码',
     'Salt'                   => '密码盐',
-    'Mobile'                 => '区号手机号',
-    'Simplemobile'           => '手机号',
+    'Mobile'                 => '手机号',
     'Avatar'                 => '头像',
     'Gender'                 => '性别',
     'Gender 1'               => '男',

+ 1 - 8
application/admin/model/User.php

@@ -64,14 +64,7 @@ class User extends Model
                     unset($row->mobile);
                 }
             }
-            //手机去重
-            if (isset($changed['simplemobile'])) {
-                if($changed['simplemobile']){
-
-                }else {
-                    unset($row->simplemobile);
-                }
-            }
+            
         });
         /*self::beforeInsert(function ($row){
             if (isset($row['password'])) {

+ 1 - 19
application/admin/view/user/user/edit.html

@@ -43,13 +43,7 @@
             <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
         </div>
     </div>
-    <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('Simplemobile')}:</label>
-        <div class="col-xs-12 col-sm-8">
-            <input id="c-simplemobile" class="form-control" name="row[simplemobile]" type="text" value="{$row.simplemobile|htmlentities}">
-            必须和区号手机号同步,并去掉区号
-        </div>
-    </div>
+
     <!--<div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
         <div class="col-xs-12 col-sm-8">
@@ -228,18 +222,6 @@
 
         </div>
     </div>-->
-    <!--<div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('Attribute')}:</label>
-        <div class="col-xs-12 col-sm-8">
-            <input id="c-attribute" class="form-control" name="row[attribute]" type="text" value="{$row.attribute|htmlentities}">
-        </div>
-    </div>
-    <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('Shoesize')}:</label>
-        <div class="col-xs-12 col-sm-8">
-            <input id="c-shoesize" class="form-control" name="row[shoesize]" type="text" value="{$row.shoesize|htmlentities}">
-        </div>
-    </div>-->
 
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Is_tuijian')}:</label>

+ 1 - 1
application/api/controller/Userauth.php

@@ -83,7 +83,7 @@ class Userauth extends Api
         }
 
         //阿里云身份证三要素认证
-        $auth_restult = $this->userauth_aliyun_three($idcard, $truename,$this->auth->simplemobile);
+        $auth_restult = $this->userauth_aliyun_three($idcard, $truename,$this->auth->mobile);
         if($auth_restult == false){
             $this->error('身份证信息与姓名或注册手机号不符');
         }

+ 3 - 5
application/common/library/Auth.php

@@ -34,7 +34,6 @@ class Auth
         'intro_uid',
 
         'mobile',
-        'simplemobile',
         'avatar',
         'gender',
         'height',
@@ -556,10 +555,9 @@ class Auth
         //用户受到实名限制,是否能主动发起聊天
         $userinfo['im_auth_limit'] = $this->im_auth_limit() ? 1 : 0;
 
-        //mobile与simplemobile互换,方便前端
-        $userinfo['fullmobile'] = $userinfo['mobile'] ? '+'.$userinfo['mobile'] : '';
-        $userinfo['mobile']     = $userinfo['simplemobile'];
-        unset($userinfo['simplemobile']);
+        //mobile与fullmobile
+        $userinfo['fullmobile'] = $userinfo['mobile'];
+        $userinfo['mobile']     = $userinfo['mobile'];
 
         return $userinfo;
     }

+ 1 - 3
public/assets/js/backend/user/user.js

@@ -33,7 +33,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
 //                        {field: 'password', title: __('Password'), operate: 'LIKE'},
 //                        {field: 'salt', title: __('Salt'), operate: 'LIKE'},
                         {field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
-                        {field: 'simplemobile', title: __('Simplemobile'), operate: 'LIKE'},
                         {field: 'avatar', title: __('Avatar'), operate: 'LIKE', events: Table.api.events.image, formatter: Table.api.formatter.image},
                         {field: 'gender', title: __('Gender'), searchList: {"1":__('Gender 1'),"0":__('Gender 0')}, formatter: Table.api.formatter.normal},
 //                        {field: 'height', title: __('Height'), operate: 'LIKE'},
@@ -63,8 +62,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
 //                        {field: 'hide_is_finishinfo', title: __('Hide_is_finishinfo'), searchList: {"1":__('Hide_is_finishinfo 1'),"0":__('Hide_is_finishinfo 0')}, formatter: Table.api.formatter.normal},
 //                        {field: 'wechat_openid', title: __('Wechat_openid'), operate: 'LIKE'},
 //                        {field: 'is_active', title: __('Is_active'), searchList: {"1":__('Is_active 1'),"0":__('Is_active 0')}, formatter: Table.api.formatter.normal},
-                        {field: 'attribute', title: __('Attribute'), operate: 'LIKE'},
-                        {field: 'shoesize', title: __('Shoesize'), operate: 'LIKE'},
+
                         {field: 'is_tuijian', title: __('Is_tuijian'), searchList: {"1":__('Is_tuijian 1'),"0":__('Is_tuijian 0')}, formatter: Table.api.formatter.normal},
 //                        {field: 'ios_user_id', title: __('Ios_user_id'), operate: 'LIKE'},
                         {field: 'plat_unique_id', title: __('Plat_unique_id'), operate: 'LIKE'},