config.js 2.5 KB
Newer Older
1 2 3
// "文件路径" : {"键名":"改成什么"}
{
	"/manifest.json": {
4 5 6
		"appid": "请点击重新获取" ,//清空appid
		"mp-weixin" : {
		    "appid" : ""
7
		},
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
		"app-plus" : {
			"distribute" :{
				"sdkConfigs" : {
				    "oauth" : {
				        "weixin" : {
				            "appid" : "",
				            "appsecret" : "",
				            "UniversalLinks" : ""
				        },
				        "univerify" : {}
				    },
				    "share" : {
				        "weixin" : {
				            "appid" : "",
				            "UniversalLinks" : ""
				        }
				    },
				    "geolocation" : {
				        "baidu" : {
				            "__platform__" : [ "ios", "android" ],
				            "appkey_ios" : "请填写地图的key",
				            "appkey_android" : "请填写地图的key"
				        }
				    }
				}
			}
		},
35 36
		"_spaceID" : "",
		"vueVersion" : "2"
37
	},
38 39
	"/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json": {
		"tokenExpiresIn": 7200,
40
		"app": {
41 42
			"oauth": {
				"weixin": {
43 44
					"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
					"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
45 46
				},
				"apple": {
47
					"bundleId": "苹果开发者后台获取的bundleId"
48 49 50 51 52 53
				}
			}
		},
		"mp-weixin": {
			"oauth": {
				"weixin": {
54 55
					"appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
					"appsecret": "微信小程序后台获取的appsecret"
56 57 58 59 60 61
				}
			}
		},
		"mp-alipay": {
			"oauth": {
				"alipay": {
62 63
					"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
					"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
64 65 66 67 68
				}
			}
		},
		"service": {
			"sms": {
69 70 71
				"name": "应用名称,对应短信模版的name",
				"smsKey": "短信密钥key,开通短信服务处可以看到",
				"smsSecret": "短信密钥secret,开通短信服务处可以看到"
72 73
			},
			"univerify": {
74 75
				"appid": "当前应用的appid,使用云函数URL化,此项必须配置",
				"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
76 77 78 79 80
				"apiSecret": ""
			}
		}
	}
}