Merge branch 'feature/gift_list_change' of wmtx/sdk into master

游戏礼包修改
master
郑永星 5 years ago committed by Gogs
commit b667014301

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

Loading…
Cancel
Save