|
|
|
@ -35,6 +35,26 @@ class Zone extends BaseController |
|
|
|
return $this->renderSuccess('数据返回成功',ZoneGoods::getList($param['zone_id'])); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 刮奖初始化数据 |
|
|
|
* @return array |
|
|
|
* @throws \think\db\exception\DataNotFoundException |
|
|
|
* @throws \think\db\exception\DbException |
|
|
|
* @throws \think\db\exception\ModelNotFoundException |
|
|
|
*/ |
|
|
|
public function beginInitInfo() |
|
|
|
{ |
|
|
|
|
|
|
|
$param = Request::param(); |
|
|
|
$zoneGoodsId = $param['zone_goods_id']; |
|
|
|
$userData = Session::get('login_user_data'); |
|
|
|
|
|
|
|
$info = ZoneGoods::where('status',1)->field('important,content,price,bg_image')->find()->toArray(); |
|
|
|
|
|
|
|
if ($info['bg_image']) $info['bg_image'] = get_image_url($info['bg_image']); |
|
|
|
return $this->renderSuccess('数据返回成功',['data' => $info]); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 立即刮奖 |
|
|
|
* @param $zoneGoodsId |
|
|
|
|