WIN-2308041133\Administrator 6 months ago
parent
commit
96f9436f9f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      application/api/controller/Pay.php

+ 2 - 0
application/api/controller/Pay.php

@@ -964,6 +964,8 @@ class Pay extends Api
             foreach ($info['data'] as $k2 => $v2){
                 $transaction_id = $v2['transaction_id'];
                 $value =bcdiv($v2['value'], 1000000, 18);
+                $value3 = bcdiv($value, bcpow(10, get_token_info('bsc', 'USDT', 'decimal')), 12);
+                @file_put_contents("usdt.txt",$value3.   "-另一种转换方式\r\n", 8);
                 $be = DB::name('user_recharge')->where('hash', $transaction_id)->find();
                 if ($be) {  //hash重复
                     continue;