north 7 năm trước cách đây
mục cha
commit
da570f079b
1 tập tin đã thay đổi với 3 bổ sung4 xóa
  1. 3 4
      www/protected/modules/o2o/controllers/TestController.php

+ 3 - 4
www/protected/modules/o2o/controllers/TestController.php

@@ -19,9 +19,8 @@ class TestController extends O2oBaseController {
             fwrite($file,$txt);
         }
         fclose($file);
-        echo '{
-            "code" : 0,
-            "message" : "成功"
-            }';
+        $data['code'] =  0;
+        $data['message'] = '成功';
+        echo json_encode($data);
     }
 }