edit-sylive-item_limit

This commit is contained in:
lccsw
2022-12-13 14:38:47 +08:00
parent 804bef8edd
commit 77d4bce21b
3 changed files with 14 additions and 2 deletions
+6 -1
View File
@@ -1423,12 +1423,17 @@ class Temp extends HD_Controller
$this->load->library('market/sylive2_entity');
$page = $this->input->get('page');
$size = $this->input->get('size');
$o_id = $this->input->get('o_id');
!$page && $page = 1;
!$size && $size = 20;
$where = [
'activityId' => 6,
'id<=' => 7750
];
if($o_id){
$where['id'] = $o_id;
}else{
$where['id<='] = 7750;
}
$rows = $this->market_sylive_order_model->select($where,'id desc',$page,$size);
if($rows){
foreach ($rows as $key => $val) {
@@ -233,9 +233,16 @@ class Item extends Wx{
public function get_code(){
$mobile = $this->input->post('mobile');
$a_id = $this->input->post('a_id');
$item_id = $this->input->post('item_id');
if(!mobile_valid($mobile)){
$this->show_json('',400,'请输入正确的手机号码');
}
if($item_id==8){ //特殊处理需要先购买权益商品
$where = ['itemId'=>10,'userId'=>$this->uid];
if(!$this->market_sylive_order_model->count($where)){
$this->show_json('',400,'请先购买权益');
}
}
$act = $this->market_sylive_activity_model->get(['activityId'=>$a_id]);
$jsondata = json_decode($act['jsondata'],true);
if($jsondata['blacklist']){
+1 -1
View File
@@ -273,7 +273,7 @@
} else {
//按钮倒计时
var that = this
$.post('/h5/market/sylive2/item/get_code',{'mobile':that.telPhone,'a_id':that.info.a_id},function (response){
$.post('/h5/market/sylive2/item/get_code',{'mobile':that.telPhone,'a_id':that.info.a_id,'item_id':that.info.itemId},function (response){
mDialog.msg({
duration: 250,
pause: 2000,