shish %!s(int64=2) %!d(string=hai) anos
pai
achega
d6f4ac4fb0
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      console/controllers/TestController.php

+ 4 - 0
console/controllers/TestController.php

@@ -27,6 +27,10 @@ class TestController extends Controller
     //更新时间
     //更新时间
     public function actionExpendTime()
     public function actionExpendTime()
     {
     {
+        $sql = "UPDATE xhGhsCustom SET recentExpend='2024-02-01 01:01:00'";
+        Yii::$app->db->createCommand($sql)->execute();
+        $sql = "UPDATE xhGhs SET recentExpend='2024-02-01 01:01:00'";
+        Yii::$app->db->createCommand($sql)->execute();
         $list = \bizGhs\order\classes\OrderClass::getAllByCondition(['payTime>' => '2024-04-01 23:35:00'], null, '*', 'payTime asc', true);
         $list = \bizGhs\order\classes\OrderClass::getAllByCondition(['payTime>' => '2024-04-01 23:35:00'], null, '*', 'payTime asc', true);
         if (!empty($list)) {
         if (!empty($list)) {
             foreach ($list as $info) {
             foreach ($list as $info) {