|
@@ -197,8 +197,8 @@ class My extends Core
|
|
|
$info['invoice'] = Dever::db('passport/invoice')->find($info['invoice_id']);
|
|
|
}
|
|
|
|
|
|
- if ($info['coupon_id']) {
|
|
|
- $coupon = Dever::db('shop/user_coupon')->find($info['coupon_id']);
|
|
|
+ if ($info['user_coupon_id']) {
|
|
|
+ $coupon = Dever::db('shop/user_coupon')->find($info['user_coupon_id']);
|
|
|
if ($coupon) {
|
|
|
$info['coupon'] = Dever::db('goods/coupon')->find($coupon['coupon_id']);
|
|
|
}
|