Browse Source

显示钱包余额

lizhen_gitee 10 months ago
parent
commit
8071d15611
1 changed files with 2 additions and 1 deletions
  1. 2 1
      addons/unishop/controller/Order.php

+ 2 - 1
addons/unishop/controller/Order.php

@@ -160,7 +160,8 @@ class Order extends Base
                 'product' => $productData,
                 'address' => $address,
                 'coupon' => $coupon,
-                'delivery' => $delivery['list']
+                'delivery' => $delivery['list'],
+                'wallet' => Db::name('user_wallet')->where('user_id',$this->auth->id)->find(),
             ]);
 
         } catch (Exception $e) {