From feb23da8c1660517aba5f90345607decfa7b1f5c Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期五, 07 七月 2023 10:29:04 +0800
Subject: [PATCH] no message

---
 application/api/controller/User.php |    2 +-
 application/common/library/Auth.php |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/application/api/controller/User.php b/application/api/controller/User.php
index c60bf0e..e631e76 100644
--- a/application/api/controller/User.php
+++ b/application/api/controller/User.php
@@ -327,7 +327,7 @@
         }else{ //鍒ゆ柇寰俊鏄惁宸茬粡缁戝畾
             $find_third = $ModelThird->where(['openid'=>$wxUser['openid']])->find();
             if(!empty($find_third)) $this->error('褰撳墠寰俊鍙峰凡缁戝畾鍏朵粬璐﹀彿');
-            $ret = $this->auth->register('', Random::alnum(), '', $mobile, [],'wechat',$wxUser);
+            $ret = $this->auth->register('', Random::alnum(), '', $mobile, [],'wechat',$wxUser,$pushCid);
         }
         Sms::flush($mobile, 'changemobile');
         if ($ret) {
diff --git a/application/common/library/Auth.php b/application/common/library/Auth.php
index fb07390..6de3231 100644
--- a/application/common/library/Auth.php
+++ b/application/common/library/Auth.php
@@ -134,7 +134,7 @@
      * @param string $third_info 涓夋柟鐢ㄦ埛淇℃伅 娉�:闇�淇濇寔缁熶竴缁撴瀯
      * @return boolean
      */
-    public function register($username = '', $password, $email = '', $mobile = '', $extend = [],$third_platform="",$third_info=[])
+    public function register($username = '', $password, $email = '', $mobile = '', $extend = [],$third_platform="",$third_info=[],$pushCid="")
     {
         // 妫�娴嬬敤鎴峰悕銆佹樀绉般�侀偖绠便�佹墜鏈哄彿鏄惁瀛樺湪
         if(!empty($third_platform) && !empty($third_info)){
@@ -184,7 +184,8 @@
             'logintime' => $time,
             'loginip'   => $ip,
             'prevtime'  => $time,
-            'status'    => 'normal'
+            'status'    => 'normal',
+            'push_cid'=>$pushCid
         ]);
         //$params['password'] = $this->getEncryptPassword($password, $params['salt']);
         $params = array_merge($params, $extend);

--
Gitblit v1.9.3