소스 검색

金币不够,收益来凑

lizhen_gitee 1 년 전
부모
커밋
ece66e2ee7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      application/common/model/Wallet.php

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

@@ -88,7 +88,7 @@ class Wallet extends Model
         );
 
         //获取小数点
-        $point = $accountType == 'jewel' ? 1 : 0;
+        $point = 1;
         bcscale($point);
 
         //检测0
@@ -135,7 +135,7 @@ class Wallet extends Model
                     $data['log_type'] = $logtype;
                     $data['money_type'] = $accountType;
                     $data['before'] = $wallet['gold'];
-                    $data['change_value'] = $wallet['gold'];
+                    $data['change_value'] = -$wallet['gold'];
                     $data['remain'] = 0;
                     $data['table'] = $table;
                     $data['table_id'] = $table_id;