2***@qq.com
2***@qq.com
  • 发布:2023-11-08 14:09
  • 更新:2024-09-06 13:37
  • 阅读:473

同一个云空间下面怎么配置两个小程序登录

分类:uniCloud
[  
    {  
        "passwordSecret": "passwordSecret-demo",  
        "tokenSecret": "tokenSecret-demo",  
        "tokenExpiresIn": 7200,  
        "tokenExpiresThreshold": 600,  
        "passwordErrorLimit": 6,  
        "bindTokenToDevice": true,  
        "passwordErrorRetryTime": 3600,  
        "autoSetInviteCode": false,  
        "forceInviteCode": false,  
        "dcloudAppid": "__UNI__01234567"  
    },  
    {  
        "passwordSecret": "passwordSecret-demo",  
        "tokenSecret": "tokenSecret-demo",  
        "tokenExpiresIn": 7200,  
        "tokenExpiresThreshold": 600,  
        "passwordErrorLimit": 6,  
        "bindTokenToDevice": true,  
        "passwordErrorRetryTime": 3600,  
        "autoSetInviteCode": false,  
        "forceInviteCode": false,  
        "dcloudAppid": "__UNI__23456767",  
        "mp-weixin": {  
            "oauth": {  
                "weixin": {  
                    "appid": "一个小程序appid",  
                    "appsecret": "一个小程序appsecret"  
                }  
            }  
        }  
    },  
    {  
        "passwordSecret": "passwordSecret-demo",  
        "tokenSecret": "tokenSecret-demo",  
        "tokenExpiresIn": 7200,  
        "tokenExpiresThreshold": 600,  
        "passwordErrorLimit": 6,  
        "bindTokenToDevice": true,  
        "passwordErrorRetryTime": 3600,  
        "autoSetInviteCode": false,  
        "forceInviteCode": false,  
        "dcloudAppid": "__UNI__0987654",  
        "mp-weixin": {  
            "oauth": {  
                "weixin": {  
                    "appid": "一个小程序appid",  
                    "appsecret": "一个小程序appsecret"  
                }  
            }  
        }  
    }  
]

这是配置的代码,数组内第一个是web管理端,第二个第三个都是小程序,但是在运行小程序的时候只要第一个有效,第二个登录的时候就会显示非法appsecret,不知是不是我的uni-config-center JSON配错了,有没有大佬帮忙指导一下

2023-11-08 14:09 负责人:无 分享
已邀请:
Lucianus

Lucianus - 高级干饭工程师

要回复问题请先登录注册