Browse Source

没什么用的修改

lizhen_gitee 2 weeks ago
parent
commit
7b6e25b9f7
2 changed files with 5 additions and 4 deletions
  1. 2 1
      application/common/library/Authworker.php
  2. 3 3
      application/config.php

+ 2 - 1
application/common/library/Authworker.php

@@ -137,6 +137,7 @@ class Authworker
      * @param array  $extend   扩展参数
      * @return boolean
      */
+    //师傅端没有注册,用不到
     public function register($username, $password, $email = '', $mobile = '', $extend = [])
     {
         // 检测用户名、昵称、邮箱、手机号是否存在
@@ -230,7 +231,7 @@ class Authworker
 
             //腾讯im注册用户
             $tenim = new Tenim();
-            $rs = $tenim->register('worker'.$user->id,$params['nickname'],'');
+            $rs = $tenim->register('master_'.$user->id,$params['nickname'],'');
             if($rs !== true){
                 $this->setError($rs);
                 Db::rollback();

+ 3 - 3
application/config.php

@@ -326,10 +326,10 @@ return [
         'client_secret' => '',
     ],
 
-    //微信小程序 鲁享途中
+    //微信小程序
     'wxMiniProgram' => [
-        'appid'  => 'wx9a7153e5b40d9663',
-        'secret' => '8a743955faa5873af394f31d4a58c086',
+        'appid'  => '',
+        'secret' => '',
     ],
 
     //腾讯云 IM