share hidden

This commit is contained in:
xiaoyu
2023-07-18 14:37:52 +08:00
parent 07cf724038
commit e6a2722321
16 changed files with 17 additions and 12 deletions
@@ -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也只能加一次
+2 -5
View File
@@ -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 = [
@@ -561,4 +561,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
@@ -184,4 +184,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
@@ -213,4 +213,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
@@ -172,4 +172,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
+1 -1
View File
@@ -480,5 +480,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
+1 -1
View File
@@ -144,5 +144,5 @@
},
})
</script>
<?=$this->load->view('h5/market/sylive/share_script')?>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
@@ -314,5 +314,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
@@ -497,5 +497,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
@@ -416,5 +416,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
+1 -1
View File
@@ -165,5 +165,5 @@
},
})
</script>
<?=$this->load->view('h5/market/sylive/share_script')?>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
@@ -275,5 +275,5 @@
},
})
</script>
<?=$this->load->view('h5/market/sylive2/share_script')?>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
@@ -70,4 +70,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
@@ -143,4 +143,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>
@@ -174,4 +174,5 @@
},
})
</script>
<?= $this->load->view('h5/market/sylive2/hidden_wx_share') ?>
</body>