xialei 1 год назад
Родитель
Сommit
cd55f31ed2
3 измененных файлов с 4 добавлено и 4 удалено
  1. 1 1
      app/command/Csm.php
  2. 1 1
      app/common/dao/user/UserDao.php
  3. 2 2
      app/controller/api/Auth.php

+ 1 - 1
app/command/Csm.php

@@ -36,7 +36,7 @@ class Csm extends Command
36
             foreach ($data as $k => $v) {
36
             foreach ($data as $k => $v) {
37
                 $find = Db::name('user')->where("account",$v['account'])->find();
37
                 $find = Db::name('user')->where("account",$v['account'])->find();
38
                 if (!$find){
38
                 if (!$find){
39
-                    $pwd = $userRepository->encodePassword("12345678");
39
+                    $pwd = $userRepository->encodePassword("123456");
40
                     $data = [
40
                     $data = [
41
                         'account' => $v['account'],
41
                         'account' => $v['account'],
42
                         'pwd' => $pwd,
42
                         'pwd' => $pwd,

+ 1 - 1
app/common/dao/user/UserDao.php

@@ -61,7 +61,7 @@ class UserDao extends BaseDao
61
      */
61
      */
62
     public function defaultPwd()
62
     public function defaultPwd()
63
     {
63
     {
64
-        return '12345678';
64
+        return '123456';
65
     }
65
     }
66
 
66
 
67
     /**
67
     /**

+ 2 - 2
app/controller/api/Auth.php

@@ -1658,7 +1658,7 @@ class Auth extends BaseController
1658
         if(!$data['third_user_id'] || $data['third_user_id'] == '' || $data['third_user_id'] =='undefined'){
1658
         if(!$data['third_user_id'] || $data['third_user_id'] == '' || $data['third_user_id'] =='undefined'){
1659
             return app('json')->fail("绑定失败");
1659
             return app('json')->fail("绑定失败");
1660
         }
1660
         }
1661
-        $data['password'] = '12345678';//密码已经去掉了。统一默认密码
1661
+        $data['password'] = '123456';//密码已经去掉了。统一默认密码
1662
 
1662
 
1663
         $user = $repository->thirdBinding($data['phone'], $data['password'],'APP','',0,"https://". $this->request->host(true));//2222
1663
         $user = $repository->thirdBinding($data['phone'], $data['password'],'APP','',0,"https://". $this->request->host(true));//2222
1664
         if($user){
1664
         if($user){
@@ -1692,7 +1692,7 @@ class Auth extends BaseController
1692
         if(!$data['third_user_id'] || $data['third_user_id'] == '' || $data['third_user_id'] =='undefined'){
1692
         if(!$data['third_user_id'] || $data['third_user_id'] == '' || $data['third_user_id'] =='undefined'){
1693
             return app('json')->fail("绑定失败");
1693
             return app('json')->fail("绑定失败");
1694
         }
1694
         }
1695
-        $data['password'] = '12345678';//密码已经去掉了。统一默认密码
1695
+        $data['password'] = '123456';//密码已经去掉了。统一默认密码
1696
         $validate->sceneSmslogin()->check($data);
1696
         $validate->sceneSmslogin()->check($data);
1697
         if($data['sms'] != 1){
1697
         if($data['sms'] != 1){
1698
             if (!$this->checkSmsCode($data['phone'], $data['sms_code']))
1698
             if (!$this->checkSmsCode($data['phone'], $data['sms_code']))