Browse Source

获取openid

zhangxiaobin 1 year ago
parent
commit
6dfe21d148
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/common/model/Wallet.php

+ 2 - 1
application/common/model/Wallet.php

@@ -42,7 +42,8 @@ class Wallet extends Model
         //所有钱包余额
         //所有钱包余额
         $wallet = Db::name('user_wallet')->where(['user_id' => $user_id,'company_id' => $company_id])->lock(true)->find();
         $wallet = Db::name('user_wallet')->where(['user_id' => $user_id,'company_id' => $company_id])->lock(true)->find();
         if(!$wallet) {
         if(!$wallet) {
-            abort(500,'钱包余额获取失败');
+            return 0;
+            //abort(500,'钱包余额获取失败');
         }
         }
 
 
         if($wallet_name) { //返回指定钱包
         if($wallet_name) { //返回指定钱包