lizhen_gitee 10 months ago
parent
commit
8ccd8ef2e5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      application/api/controller/Unishop.php
  2. 1 1
      application/config.php

+ 1 - 1
application/api/controller/Unishop.php

@@ -52,7 +52,7 @@ class Unishop extends Api
             Db::startTrans();
 
             //扣钱
-            $rs_wallet = model('wallet')->lockChangeAccountRemain($this->auth->id,'money',$orderinfo['total_price'],31,'商城购物','unishop_order',$orderid);
+            $rs_wallet = model('wallet')->lockChangeAccountRemain($this->auth->id,'money',-$orderinfo['total_price'],31,'商城购物','unishop_order',$orderid);
             if($rs_wallet['status'] == false){
                 Db::rollback();
                 $this->error($rs_wallet['msg']);

+ 1 - 1
application/config.php

@@ -317,7 +317,7 @@ return [
         'host'      => '127.0.0.1',
         'port'      => 6379,
         'redis_pwd' => '',
-        'redis_selectdb' => 0,
+        'redis_selectdb' => 11,
     ],
 
     //阿里云短信配置,  借用 tken