1
This commit is contained in:
parent
1687213c4f
commit
886cfbaf9f
@ -134,16 +134,20 @@ class User extends Controller
|
||||
*/
|
||||
public function getWxUserCoupon()
|
||||
{
|
||||
$post = $this->request->get();
|
||||
$post = $_GET;
|
||||
|
||||
if (isset($post['coupon_id'])) {
|
||||
$where['coupon_user_id'] = $post['coupon_id'];
|
||||
}
|
||||
|
||||
if (isset($post['openid'])) {
|
||||
if (!empty($post['openid'])) {
|
||||
$where['openid'] = $post['openid'];
|
||||
}
|
||||
|
||||
if (!empty($post['coupon_id'])) {
|
||||
$where['coupon_user_id'] = $post['coupon_id'];
|
||||
if (!empty($where['openid'])) {
|
||||
unset($where['openid']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$data = Db::name('food_coupon_user_wx')->where($where)->select();
|
||||
return $this->renderSuccess($data, '成功');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user