Merge branch 'feature/gift_list_change' into dev

master
zhengyongxing 5 years ago
commit 43fec6477c

@ -32,13 +32,15 @@ class GameGiftPageController extends Controller{
switch ($sdkVersion) { switch ($sdkVersion) {
case 1: case 1:
case 2: case 2:
$map['giftbag_version'] = $sdkVersion; $map['giftbag_version'] = ['in', [$sdkVersion, 4]];
break; break;
} }
$list = $gift $list = $gift
->field("id,giftbag_name,novice,start_time,end_time,desribe,game_name") ->field("id,giftbag_name,novice,start_time,end_time,desribe,game_name")
->where($map) ->where($map)
->select(); ->select();
//遍历数据获取游戏图片地址 //遍历数据获取游戏图片地址
foreach ($list as $key => $val) { foreach ($list as $key => $val) {
$res = M('gift_record','tab_')->field('id')->where(['gift_id' => $val['id'],'user_id' => $this->userId])->find(); $res = M('gift_record','tab_')->field('id')->where(['gift_id' => $val['id'],'user_id' => $this->userId])->find();

Loading…
Cancel
Save