Merge branch 'master' of http://app.git.1nww.com:8188/gitlab-instance-db4ab2e7/cxhxy
This commit is contained in:
commit
d5fd6f6803
@ -134,16 +134,20 @@ class User extends Controller
|
|||||||
*/
|
*/
|
||||||
public function getWxUserCoupon()
|
public function getWxUserCoupon()
|
||||||
{
|
{
|
||||||
$post = $this->request->get();
|
$post = $_GET;
|
||||||
|
|
||||||
if (isset($post['coupon_id'])) {
|
if (!empty($post['openid'])) {
|
||||||
$where['coupon_user_id'] = $post['coupon_id'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($post['openid'])) {
|
|
||||||
$where['openid'] = $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();
|
$data = Db::name('food_coupon_user_wx')->where($where)->select();
|
||||||
return $this->renderSuccess($data, '成功');
|
return $this->renderSuccess($data, '成功');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user