Commit a96aa650 authored by 黄奎's avatar 黄奎

新增接口测试方法

parent 1422d629
......@@ -127,8 +127,8 @@ class UserServices {
}
//测试接口方法
static async TestMethodAsync(cmdStr: string, postMsg: string): Promise<HttpResponse> {
return Api.Post(cmdStr, postMsg)
}
// static async TestMethodAsync(cmdStr: string, postMsg: string): Promise<HttpResponse> {
// return Api.Post(cmdStr, postMsg)
// }
}
export default UserServices;
\ No newline at end of file
......@@ -128,8 +128,8 @@ const testMethod = async ()=>{
}
if(cmd&&cmd!=''){
const response = await UserServices.TestMethodAsync(cmd,postMsg);
console.log("testMethod",response);
// const response = await UserServices.TestMethodAsync(cmd,postMsg);
// 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