feat: 支持按品牌配置微信登录凭据
This commit is contained in:
1 parent
e75c524343
commit
d0a0eeea8c
23 files changed
+460
-62
No files matched your search
@@ -186,7 +186,7 @@ test("发布检查与发布操作使用当前品牌的管理接口", async () =>
|
||||
]);
|
||||
});
|
||||
|
||||
test("小程序上传配置会提交请求地址", async () => {
|
||||
test("小程序配置会提交请求地址", async () => {
|
||||
const calls: Array<{ url: string; method?: string; body?: string }> = [];
|
||||
const client = new ApiClient({
|
||||
baseUrl: "http://api.test",
|
||||
@@ -199,6 +199,7 @@ test("小程序上传配置会提交请求地址", async () => {
|
||||
await client.updateAdminMiniAppSettings({
|
||||
appId: "wx123",
|
||||
apiBaseUrl: "https://wechat.example.com/api",
|
||||
appSecret: "0123456789abcdef0123456789abcdef",
|
||||
});
|
||||
assert.deepEqual(calls, [
|
||||
{
|
||||
@@ -207,6 +208,7 @@ test("小程序上传配置会提交请求地址", async () => {
|
||||
body: JSON.stringify({
|
||||
appId: "wx123",
|
||||
apiBaseUrl: "https://wechat.example.com/api",
|
||||
appSecret: "0123456789abcdef0123456789abcdef",
|
||||
}),
|
||||
},
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user