Parcourir la source

钱包logtype

lizhen_gitee il y a 1 an
Parent
commit
214969021b

+ 1 - 1
application/api/controller/company/Customer.php

@@ -254,7 +254,7 @@ class Customer extends Apic
         }
 
         Db::startTrans();
-        $rs = model('wallet')->lockChangeAccountRemain($this->auth->company_id,$user_id,'money',$number,$logtype,$this->auth->mobile.'门店操作余额');
+        $rs = model('wallet')->lockChangeAccountRemain($this->auth->company_id,$user_id,'money',$number,$logtype,'门店操作余额('.$this->auth->truename.')');
         if($rs['status'] === false){
             Db::rollback();
             $this->error($rs['msg']);

+ 1 - 1
application/api/controller/company/Takecash.php

@@ -92,7 +92,7 @@ class Takecash extends Apic
             $this->error('提现失败');
         }
 
-        $rs_wallet = model('walletcompany')->lockChangeAccountRemain($this->auth->company_id,'money',-$money,204,'提现','company_take_cash',$logid);
+        $rs_wallet = model('walletcompany')->lockChangeAccountRemain($this->auth->company_id,'money',-$money,205,'提现','company_take_cash',$logid);
         if($rs_wallet['status'] === false){
             Db::rollback();
             $this->error($rs_wallet['msg']);

+ 2 - 1
application/extra/wallet.php

@@ -13,7 +13,8 @@ return [
 
         //商户钱包,200开始
         203 => '售出套餐', //增加
-        204 => '提现', //减少
+        204 => '用户充值', //增加
+        205 => '提现', //减少
     ],
     'moneyname' => [
         'money'    => '储值卡',