dever 3 years ago
parent
commit
7c4a6d966c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/shop/src/My.php

+ 2 - 2
app/shop/src/My.php

@@ -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']);
                 }