Commit 142a015e authored by 韦凯德's avatar 韦凯德

opt: c client request

parent 98205196
...@@ -7,7 +7,7 @@ const request = ({ cloud, cloudName, requestType = 'cloud', mockUrl }) => { ...@@ -7,7 +7,7 @@ const request = ({ cloud, cloudName, requestType = 'cloud', mockUrl }) => {
console.error('请传入云函数名称'); console.error('请传入云函数名称');
return false; return false;
} }
return async (handle, method, params, ext = {}) => { return async (handle, method = 'POST', params, ext = {}) => {
const { activityId } = getApp(); const { activityId } = getApp();
// 默认注入activityId // 默认注入activityId
params = { activityId, ...params }; params = { activityId, ...params };
......
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