Authored by 郭成尧

Merge branch 'master' into hotfix/addressSelect

@@ -158,6 +158,7 @@ class CouponController extends AbstractAction @@ -158,6 +158,7 @@ class CouponController extends AbstractAction
158 158
159 $result = CouponModel::couponSend($uid, $token, $app); 159 $result = CouponModel::couponSend($uid, $token, $app);
160 160
161 - $this->helpJsonCallbackResult($callback, $result['code'], $result['message'], $result['data']); 161 + $this->helpJsonCallbackResult($callback, $result['code'], $result['message'],
  162 + isset($result['data']) ? $result['data'] : null);
162 } 163 }
163 } 164 }
@@ -32,7 +32,7 @@ class CouponModel @@ -32,7 +32,7 @@ class CouponModel
32 32
33 do { 33 do {
34 // APP时用参数中的ID 34 // APP时用参数中的ID
35 - if (self::checkApp($app)) { 35 + if (!$uid || empty($uid)) {
36 $uid = isset($app['uid']) ? $app['uid'] : 0; 36 $uid = isset($app['uid']) ? $app['uid'] : 0;
37 } 37 }
38 38