We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cf45cd commit dd86d0bCopy full SHA for dd86d0b
packages/client-sdk/src/cloud.ts
@@ -19,7 +19,12 @@ class Cloud {
19
if (this.config?.requestClass) {
20
ret = this.config?.requestClass;
21
} else if (env === EnvironmentType.UNI_APP) {
22
- ret = UniRequest;
+ const { uniPlatform } = uni.getSystemInfoSync();
23
+ if (uniPlatform == 'mp-weixin') {
24
+ ret = WxmpRequest;
25
+ } else {
26
+ ret = UniRequest;
27
+ }
28
} else if (env === EnvironmentType.WX_MP) {
29
ret = WxmpRequest;
30
} else {
0 commit comments