stanley-king 2 年之前
父節點
當前提交
1c3edbef70
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      admin/control/orderstats.php

+ 3 - 3
admin/control/orderstats.php

@@ -333,12 +333,12 @@ class orderstatsControl extends SystemControl
             $cid_field = 'mchid';
             $cache_field = 'merchant';
         } else {
-            showMessage('类型错误!');
+            echo json_encode(['status' => 'fail','message' => '类型错误']);
         }
 
         $statType = $_POST['statType'];
         if(empty($statType)) {
-            showMessage('操作成功!');
+            echo json_encode(['status' => 'success','message' => '操作成功']);
         }
 
         foreach ($items as $item)
@@ -352,7 +352,7 @@ class orderstatsControl extends SystemControl
         }
 
         wcache('balance-cfg', [$cache_field => serialize($result)], 'refill-');
-        showMessage('操作成功!');
+        echo json_encode(['status' => 'success','message' => '操作成功']);
     }
 
     public function balance_cfg_dataOp()