From c40c8bada51835e9c237b7fd4584b6447012658a Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Tue, 18 Jul 2023 14:37:52 +0800 Subject: [PATCH] share hidden --- common/libraries/market/Sylive2_entity.php | 1 + home/controllers/h5/market/sylive2/User.php | 7 ++----- home/views/h5/market/sylive2/customer/index.php | 1 + home/views/h5/market/sylive2/order/apply.php | 1 + home/views/h5/market/sylive2/order/exchange.php | 1 + home/views/h5/market/sylive2/order/index.php | 1 + home/views/h5/market/sylive2/stic/index.php | 2 +- home/views/h5/market/sylive2/stic/rank.php | 2 +- home/views/h5/market/sylive2/stic/ranking.php | 2 +- home/views/h5/market/sylive2/stic/ranking1.php | 2 +- home/views/h5/market/sylive2/stic/rankingback.php | 2 +- home/views/h5/market/sylive2/stic/users.php | 2 +- home/views/h5/market/sylive2/ucenter/detail.php | 2 +- home/views/h5/market/sylive2/ucenter/index.php | 1 + home/views/h5/market/sylive2/ucenter/orders.php | 1 + home/views/h5/market/sylive2/ucenter/win.php | 1 + 16 files changed, 17 insertions(+), 12 deletions(-) diff --git a/common/libraries/market/Sylive2_entity.php b/common/libraries/market/Sylive2_entity.php index fb603e1d..663f295e 100644 --- a/common/libraries/market/Sylive2_entity.php +++ b/common/libraries/market/Sylive2_entity.php @@ -50,6 +50,7 @@ class Sylive2_entity{ $user = $this->user_model->get(['userId'=>$params['uid']]); $act_user = $this->act_user_model->get(['activityId'=>$params['a_id'],'userId'=>$params['cf_uid']]); if(!$user || !$act_user){ + debug_log("[info]# " .'uid:'.$params['uid'].' cf_uid:'.$params['cf_uid'].'顾问不存在', 'market/sylive','kpi.log'); return array('code' => 0, 'msg' => '顾问不存在'); } if(!in_array($params['kpi'],['order']) || $params["itemId"]==19){ //订单可添加多条kpi 商品id=19也只能加一次 diff --git a/home/controllers/h5/market/sylive2/User.php b/home/controllers/h5/market/sylive2/User.php index cc61e811..1e3cbfe3 100644 --- a/home/controllers/h5/market/sylive2/User.php +++ b/home/controllers/h5/market/sylive2/User.php @@ -95,7 +95,7 @@ class User extends Admin $day = date('Y-m-d H:i:s'); $where = [ 'userId' => $this->uid, - 'status' => 0, + 'status > -1' => null, 'type' => 1, "activityId in (select activityId from lc_market_sylive_activity where timeEnd>'{$day}' and status > -1)" => null ]; @@ -159,10 +159,7 @@ class User extends Admin if (!$userId) { $this->show_json('', 400, '参数错误'); } -// $user = $this->user_model->get(['userId' => $userId]); -// if($user['openid'] && !$status){ -// $this->show_json('', 400, '操作失败,用户已绑定微信公众号'); -// } + $this->user_model->update(['status' => $status], ['userId' => $userId]); if($status==-1){ $where = [ diff --git a/home/views/h5/market/sylive2/customer/index.php b/home/views/h5/market/sylive2/customer/index.php index ade304c8..df8908d3 100644 --- a/home/views/h5/market/sylive2/customer/index.php +++ b/home/views/h5/market/sylive2/customer/index.php @@ -561,4 +561,5 @@ }, }) +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/order/apply.php b/home/views/h5/market/sylive2/order/apply.php index 6c4decdc..ab1883f8 100644 --- a/home/views/h5/market/sylive2/order/apply.php +++ b/home/views/h5/market/sylive2/order/apply.php @@ -184,4 +184,5 @@ }, }) +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/order/exchange.php b/home/views/h5/market/sylive2/order/exchange.php index 61d55437..5775671f 100644 --- a/home/views/h5/market/sylive2/order/exchange.php +++ b/home/views/h5/market/sylive2/order/exchange.php @@ -213,4 +213,5 @@ }, }) +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/order/index.php b/home/views/h5/market/sylive2/order/index.php index 3fe73b53..d217969a 100644 --- a/home/views/h5/market/sylive2/order/index.php +++ b/home/views/h5/market/sylive2/order/index.php @@ -172,4 +172,5 @@ }, }) +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/stic/index.php b/home/views/h5/market/sylive2/stic/index.php index ec59e43e..877f7e65 100644 --- a/home/views/h5/market/sylive2/stic/index.php +++ b/home/views/h5/market/sylive2/stic/index.php @@ -480,5 +480,5 @@ }, }) - +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/stic/rank.php b/home/views/h5/market/sylive2/stic/rank.php index 154871fd..a19c6f25 100644 --- a/home/views/h5/market/sylive2/stic/rank.php +++ b/home/views/h5/market/sylive2/stic/rank.php @@ -144,5 +144,5 @@ }, }) -load->view('h5/market/sylive/share_script')?> +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/stic/ranking.php b/home/views/h5/market/sylive2/stic/ranking.php index 686f408b..ed560588 100644 --- a/home/views/h5/market/sylive2/stic/ranking.php +++ b/home/views/h5/market/sylive2/stic/ranking.php @@ -314,5 +314,5 @@ }, }) - +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/stic/ranking1.php b/home/views/h5/market/sylive2/stic/ranking1.php index b32d274e..0f353557 100644 --- a/home/views/h5/market/sylive2/stic/ranking1.php +++ b/home/views/h5/market/sylive2/stic/ranking1.php @@ -497,5 +497,5 @@ }, }) - +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/stic/rankingback.php b/home/views/h5/market/sylive2/stic/rankingback.php index deef89ff..122b4b88 100644 --- a/home/views/h5/market/sylive2/stic/rankingback.php +++ b/home/views/h5/market/sylive2/stic/rankingback.php @@ -416,5 +416,5 @@ }, }) - +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/stic/users.php b/home/views/h5/market/sylive2/stic/users.php index 2a7c2ca2..10f4a9cb 100644 --- a/home/views/h5/market/sylive2/stic/users.php +++ b/home/views/h5/market/sylive2/stic/users.php @@ -165,5 +165,5 @@ }, }) -load->view('h5/market/sylive/share_script')?> +load->view('h5/market/sylive2/hidden_wx_share') ?> diff --git a/home/views/h5/market/sylive2/ucenter/detail.php b/home/views/h5/market/sylive2/ucenter/detail.php index 3a023c63..195ba0f7 100644 --- a/home/views/h5/market/sylive2/ucenter/detail.php +++ b/home/views/h5/market/sylive2/ucenter/detail.php @@ -275,5 +275,5 @@ }, }) -load->view('h5/market/sylive2/share_script')?> +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/ucenter/index.php b/home/views/h5/market/sylive2/ucenter/index.php index ef0da82f..57e662cc 100644 --- a/home/views/h5/market/sylive2/ucenter/index.php +++ b/home/views/h5/market/sylive2/ucenter/index.php @@ -70,4 +70,5 @@ }, }) +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/ucenter/orders.php b/home/views/h5/market/sylive2/ucenter/orders.php index 4773fb1d..4beda550 100644 --- a/home/views/h5/market/sylive2/ucenter/orders.php +++ b/home/views/h5/market/sylive2/ucenter/orders.php @@ -143,4 +143,5 @@ }, }) +load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file diff --git a/home/views/h5/market/sylive2/ucenter/win.php b/home/views/h5/market/sylive2/ucenter/win.php index 6d1cd9ac..43e0ba0b 100644 --- a/home/views/h5/market/sylive2/ucenter/win.php +++ b/home/views/h5/market/sylive2/ucenter/win.php @@ -174,4 +174,5 @@ }, }) + load->view('h5/market/sylive2/hidden_wx_share') ?> \ No newline at end of file