shish 1 an în urmă
părinte
comite
cb3e8e1e1e
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      app-ghs/controllers/TestController.php

+ 3 - 2
app-ghs/controllers/TestController.php

@@ -41,7 +41,7 @@ use wkhtmltox\Image\Converter;
 class TestController extends BaseController
 {
 
-    public $guestAccess = ['fx', 'on', 'in', 'clear-query', 'ip', 'html', 'debt', 'apply', 'clear', 'ls-trade-query', 'ls-trade-refund', 'refund-query', 'inform', 'notice', 'order-query', 'add-order', 'index', 'get', 'trade-query', 'query', 'balance-query', 'refund', 'recharge-query', 'simulate'];
+    public $guestAccess = ['fx', 'on', 'in', 'clear-query', 'ip', 'html', 'debt', 'apply', 'clear', 'ls-trade-query', 'ls-trade-refund', 'refund-query', 'inform', 'notice', 'order-query', 'add-order', 'index', 'get', 'trade-query', 'query', 'balance-query', 'refund', 'recharge-query', 'sim'];
 
     public function actionFx()
     {
@@ -1376,11 +1376,12 @@ class TestController extends BaseController
         $r = $producer->publish($msg, 'informExchange', 'informRoute');
     }
 
-    public function actionSimulate()
+    public function actionSim()
     {
         //将石少华的号模拟成别人的号进行测试,有多处需要同步修改,关键词 simulate_other ssh 20250717
         $get = Yii::$app->request->get();
         $id = $get['id'] ?? 0;
+        $simulateKey = 'simulate_admin_id';
         if ($id == 0) {
             Yii::$app->redis->executeCommand('DEL', [$simulateKey]);
             util::stop('已将石少华账号清空');