浏览代码

修改mock请求失败描述

zhuliang 6 年之前
父节点
当前提交
f7f6317291

+ 2 - 2
backend/Server/Web/Controller/MockController.class.php

@@ -63,7 +63,7 @@ class MockController
         if ($result) {
             exit($result);
         } else {
-            exit('sorry,this api without the mock data.');
+            exit('找不到mock数据: (1)服务端未设置mock支持 (2)POST请求不支持直接在浏览器输入地址请求');
         }
     }
 
@@ -99,7 +99,7 @@ class MockController
             }
             exit($result);
         } else {
-            exit('sorry,this api without the mock data.');
+            exit('找不到mock数据: (1)服务端未设置mock支持 (2)POST请求不支持直接在浏览器输入地址请求');
         }
     }
 }

+ 2 - 2
webroot/server/Server/Web/Controller/MockController.class.php

@@ -63,7 +63,7 @@ class MockController
         if ($result) {
             exit($result);
         } else {
-            exit('sorry,this api without the mock data.');
+            exit('找不到mock数据: (1)服务端未设置mock支持 (2)POST请求不支持直接在浏览器输入地址请求');
         }
     }
 
@@ -99,7 +99,7 @@ class MockController
             }
             exit($result);
         } else {
-            exit('sorry,this api without the mock data.');
+            exit('找不到mock数据: (1)服务端未设置mock支持 (2)POST请求不支持直接在浏览器输入地址请求');
         }
     }
 }