巡乐会抽奖接口提交.-错误调试
This commit is contained in:
@@ -134,6 +134,7 @@ class BlindBox extends adminApi
|
||||
$gift_bag_id = input('gift_bag_id', '');
|
||||
$quantity = input('quantity', 0);
|
||||
$weight = input('weight', 0);
|
||||
$is_world_show = input('is_world_show', 0);
|
||||
if(empty($gift_id)){
|
||||
return V(0,"请选择礼物");
|
||||
}
|
||||
@@ -157,6 +158,7 @@ class BlindBox extends adminApi
|
||||
$data['remaining_number'] = $quantity;
|
||||
$data['createtime'] = time();
|
||||
$data['weight'] = $weight;
|
||||
$data['is_world_show'] = $is_world_show;
|
||||
|
||||
$res = db::name($this->table)->insert($data);
|
||||
if($res){
|
||||
|
||||
Reference in New Issue
Block a user