From c83ddcedb77fa77cedaa9de5bc7253197f995ba1 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期三, 14 六月 2023 16:36:52 +0800
Subject: [PATCH] no message

---
 application/api/controller/User.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/application/api/controller/User.php b/application/api/controller/User.php
index ddd822d..a281c3e 100644
--- a/application/api/controller/User.php
+++ b/application/api/controller/User.php
@@ -86,6 +86,7 @@
         $mobile = $this->request->post('mobile');
         $captcha = $this->request->post('captcha');
         $ismobouth=$this->request->post('ismobouth',false);
+        $push_cid=$this->request->post('push_cid',false);
         if (!$mobile || !$captcha) {
             $this->error(__('Invalid parameters'));
         }
@@ -247,6 +248,7 @@
     {
         $openid = request()->param('openid');
         $access_token = request()->param('access_token');
+        $push_cid=request()->param('push_cid','');
         $LogicUser = new LogicUser();
         $userId = $LogicUser->getUserByOpenId($openid);
         if ($userId) {
@@ -255,6 +257,10 @@
             if ($user['status'] != 'normal') {
                 $this->error(__('Account is locked'));
             }
+            if(!empty($push_cid)&&empty($user['push_cid']))
+            {//琛ㄩ噷push_cid涓虹┖锛岃ˉ鍏╬ush_cid
+                
+            }
             //濡傛灉宸茬粡鏈夎处鍙峰垯鐩存帴鐧诲綍
             $ret = $this->auth->direct($user['id']);
         } else {

--
Gitblit v1.9.3