Commit 0ca05ecd authored by hujun's avatar hujun

content

parent 48a7b87f
......@@ -44,6 +44,30 @@ class Coupon extends Basic{
$coupon_id = array_keys($coupon_data);
$activity_where['id'] = ['in', $activity_id];
$data = $this->m_activity->getActivity('money,return_type,return_action', $activity_where);
foreach ($data as $k=>$v) {
switch ($v['return_action']) {
case 1:
$title = '邀请用户';
$subheading = '成功注册并登陆的奖励';
break;
case 2:
$title = '邀请用户成交';
$subheading = '在同联商业成交的奖励';
break;
default :
$subheading = 'APP - 我的现金红包中查看';
$title = '新用户专享';
}
if ($v['return_type'] == 0) {
$content = '现金(可提现)';
} else {
$content = '返现红包';
}
$data[$k]['title'] = $title;
$data[$k]['subheading'] = $subheading;
$data[$k]['content'] = $content;
}
// $this->m_coupon->updateData(['first_show'=>1], ['id'=>['in',$coupon_id]]);
}
return $this->response(200, '', $data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment