Commit a96aa650 authored by 黄奎's avatar 黄奎

新增接口测试方法

parent 1422d629
...@@ -127,8 +127,8 @@ class UserServices { ...@@ -127,8 +127,8 @@ class UserServices {
} }
//测试接口方法 //测试接口方法
static async TestMethodAsync(cmdStr: string, postMsg: string): Promise<HttpResponse> { // static async TestMethodAsync(cmdStr: string, postMsg: string): Promise<HttpResponse> {
return Api.Post(cmdStr, postMsg) // return Api.Post(cmdStr, postMsg)
} // }
} }
export default UserServices; export default UserServices;
\ No newline at end of file
...@@ -128,8 +128,8 @@ const testMethod = async ()=>{ ...@@ -128,8 +128,8 @@ const testMethod = async ()=>{
} }
if(cmd&&cmd!=''){ if(cmd&&cmd!=''){
const response = await UserServices.TestMethodAsync(cmd,postMsg); // const response = await UserServices.TestMethodAsync(cmd,postMsg);
console.log("testMethod",response); // console.log("testMethod",response);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment