From 46ec78d291c69dac458103df6ead5b069fc9a8f4 Mon Sep 17 00:00:00 2001
From: heyuntao <heyuntao@LAPTOP-MP4HD5NS>
Date: 星期二, 04 七月 2023 14:57:28 +0800
Subject: [PATCH] o元购记录增加平台字段

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

diff --git a/application/api/controller/User.php b/application/api/controller/User.php
index ca225c3..edb6a6a 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'));
         }
@@ -213,7 +214,8 @@
         $user = $this->auth->getUser();
         $mobile = $this->request->post('mobile');
         $captcha = $this->request->post('captcha');
-        if (!$mobile || !$captcha) {
+        $isyj=$this->request->post('isyj',false);
+        if (!$mobile || (!$isyj&&!$captcha)) {
             $this->error(__('Invalid parameters'));
         }
         if (!Validate::regex($mobile, "^1\d{10}$")) {
@@ -449,9 +451,11 @@
 
         $new_goodsId = request()->param('new_goodsId','');
 
+        $plateform= request()->param('plateform','');
+
         $LogicUserBrowse = new LogicUserBrowse();
 
-        $res = $LogicUserBrowse->updatefirstfreelog(USERID,$ids,$new_goodsId);
+        $res = $LogicUserBrowse->updatefirstfreelog(USERID,$ids,$new_goodsId,$plateform);
 
         if($res === false) $this->error($LogicUserBrowse->getError());
 

--
Gitblit v1.9.3