Commit 14271ae7 authored by 韦凯德's avatar 韦凯德

Merge branch 'c_client_opt' into 'c_client'

opt: c client request

See merge request !3
parents ee995aa5 142a015e
...@@ -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