stanley-king 3 years ago
parent
commit
0b6ff48e93
2 changed files with 8 additions and 10 deletions
  1. 1 0
      data/model/predeposit.model.php
  2. 7 10
      test/TestTime.php

+ 1 - 0
data/model/predeposit.model.php

@@ -282,6 +282,7 @@ class predepositModel extends Model {
             case 'order_cancel':
                 $data_log['lg_av_amount'] = $data['amount'];
                 $data_log['lg_freeze_amount'] = -$data['amount'];
+
                 $data_log['lg_desc'] = '取消订单,解冻预存款,订单号: '.$data['order_sn'];
                 $data_pd['freeze_predeposit'] = ['exp','freeze_predeposit-'.$data['amount']];
                 $data_pd['available_predeposit'] = ['exp','available_predeposit+'.$data['amount']];

+ 7 - 10
test/TestTime.php

@@ -116,16 +116,6 @@ class TestTime extends TestCase
         return $ltm['tm_yday'];
     }
 
-    public function testMtrand()
-    {
-        for ($i = 0; $i < 100; $i++) {
-            echo mt_rand(0,6);
-            echo "\n";
-        }
-
-        $世界 = '⬇';
-    }
-
     public function testPeriod()
     {
         $date = date('Y-m-d',time());
@@ -219,4 +209,11 @@ class TestTime extends TestCase
         $y = $data;
     }
 
+    public function testMtrand()
+    {
+        for ($i = 0; $i < 10000; $i++) {
+            $val = mt_rand(1,200);
+            Log::record("{$val}",Log::DEBUG);
+        }
+    }
 }