多人协作开发时,微信开发者工具登录账号和后台的appid必须保持一致吗?

小程序 文章 2020-08-24 17:01 1403 0 全屏看文

AI助手支持GPT4.0

多人协作开发时,微信开发者工具登录账号和后台的appid必须保持一致吗?When multi-person collaborative development, must the WeChat developer tool login account and the back-end appid be consistent?

多人协作开发时,微信开发者工具登录账号和后台的appid必须保持一致吗?

多人协作开发时,每个人的微信开发者工具的登录账号是不一样的,因此其对应的appid也是不一样的。那么服务端要设置的appid应该是哪个。

目前根据我的测试,微信开发者工具的appid和服务端设置的appid必须一致,否则在调用code2session的时候,会返回40029代码。

在小程序里设置开发者账号也不行。

请教各位应该如何设置呢?

In multi person collaborative development, the login account of each person's wechat developer tool is different, so the corresponding appid is also different. Which appid should the server set. At present, according to my test, the appid of the wechat developer tool and the appid set by the server must be consistent, otherwise when calling code2session, 40029 code will be returned. Setting up a developer's account in a small program doesn't work either. How should you set it?

回答:

จุ๊บ:

同一套代码,为啥会不一样呢?

微喵网络:

对,必须保持一致

豪镇博:问题是多个人开发时,又怎么能保证每个人的appid都一样呢?
微喵网络:写死,导入
stop eating:

为什么appid会不一样?

-EOF-

AI助手支持GPT4.0