提交 7b579e89 编写于 作者: DCloud_JSON's avatar DCloud_JSON

1.0.2

上级 d49c657a
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
}, },
"vueVersion" : "3", "vueVersion" : "2",
"h5" : { "h5" : {
"unipush" : { "unipush" : {
"enable" : true "enable" : true
......
{
"AES": {
"mod": "aes-128-cbc",
"pasword": "DCloud&2*0^1#600",
"iv": "HTML5PLUSRUNTIME",
"charset": "utf8",
"encodeReturnType": "base64"
},
"MD5": {
"encodeReturnType": "hex"
}
}
\ No newline at end of file
## 1.0.1(2022-06-28)
修复微信小程序登录时无unionid报错的Bug [详情](https://ask.dcloud.net.cn/question/148016)
## 1.0.1(2022-06-28)
添加相关uni-id表
## 1.0.0(2022-06-23) ## 1.0.0(2022-06-23)
正式版 正式版
...@@ -33,7 +33,7 @@ export default async function() { ...@@ -33,7 +33,7 @@ export default async function() {
facebook: 'facebook', facebook: 'facebook',
google: 'google', google: 'google',
alipay: 'alipay', alipay: 'alipay',
apple:"apple" apple: "apple"
} }
//遍历客户端配置的登录方式,与服务端比对。并在错误时抛出错误提示 //遍历客户端配置的登录方式,与服务端比对。并在错误时抛出错误提示
let list = loginTypes.filter(type => !supportedLoginType.includes(data[type])) let list = loginTypes.filter(type => !supportedLoginType.includes(data[type]))
......
{ {
"id": "uni-id-pages", "id": "uni-id-pages",
"displayName": "uni-id-pages", "displayName": "uni-id-pages",
"version": "1.0.0", "version": "1.0.1",
"description": "云端一体简单、统一、可扩展的用户中心页面模版", "description": "云端一体简单、统一、可扩展的用户中心页面模版",
"keywords": [ "keywords": [
"用户管理", "用户管理",
......
<h2> # 文档已移至uni-id-pages文档[https://uniapp.dcloud.net.cn/uniCloud/uni-id-pages.html](https://uniapp.dcloud.net.cn/uniCloud/uni-id-pages.html)
文档已移至 <a href="https://uniapp.dcloud.io/uniCloud/uni-id-pages.html" target="_blank">uni-id-pages文档</a>
</h2>
关于插件更新的说明:
所有uni_modules,在HBuilderX里点右键都可以直接升级。或者在插件市场导入覆盖。
覆盖时HBuilderX会弹出代码差异比对,可以决定接受哪些更改、拒绝哪些更改。
当拒绝局部修改时,注意可能产生兼容性问题。
你需要二次开发uni-id-pages的前端页面,
- 如果改动不大,那么每次更新uni-id-pages时,在HBuilderX的对比界面对比一下就好
- 如果改动较大,建议复制一套前端页面到自己工程的pages目录下,pages.json里只引用根目录pages下的页面,不引用uni_modules下的页面。然后每次uni-id-pages更新,你对比下比上一版uni-id-pages改了什么,看你是否需要再合并到你自己的pages里。pages.json里不引用uni_modules里的页面的话,打包时不会把这些页面打包进去,不影响发行后的包体积
\ No newline at end of file
...@@ -18,8 +18,16 @@ module.exports = async function (params = {}) { ...@@ -18,8 +18,16 @@ module.exports = async function (params = {}) {
} }
this.middleware.validate(params, schema) this.middleware.validate(params, schema)
const { const {
deviceId deviceId,
"appId":dcloud_appid,
uniPlatform,
osName
} = this.getClientInfo() } = this.getClientInfo()
let platform = uniPlatform
if(platform == "app"){
platform += osName
}
const { const {
uid, uid,
exp exp
...@@ -41,7 +49,9 @@ module.exports = async function (params = {}) { ...@@ -41,7 +49,9 @@ module.exports = async function (params = {}) {
user_id: uid, user_id: uid,
device_id: deviceId, device_id: deviceId,
token_expired: tokenExpired, token_expired: tokenExpired,
unipush_clientid: pushClientId push_clientid: pushClientId,
dcloud_appid,
platform
}) })
return { return {
errCode: 0 errCode: 0
...@@ -57,7 +67,9 @@ module.exports = async function (params = {}) { ...@@ -57,7 +67,9 @@ module.exports = async function (params = {}) {
}).update({ }).update({
user_id: uid, user_id: uid,
token_expired: tokenExpired, token_expired: tokenExpired,
unipush_clientid: pushClientId push_clientid: pushClientId,
dcloud_appid,
platform
}) })
return { return {
errCode: 0 errCode: 0
......
// "文件路径" : {"键名":"改成什么"} // "文件路径" : {"键名":"改成什么"}
{ {
"/manifest.json": { "/manifest.json": {
"appid" : "", "appid": "",
"name" : "", "name": "",
"versionName" : "", "versionName": "",
"mp-weixin" : { "mp-weixin": {
"appid" : "" "appid": ""
}, },
"app-plus" : { "vueVersion": "2",
"modules" : { "app-plus": {
"OAuth" : {} "modules": {
"OAuth": {}
}, },
"distribute" : { "distribute": {
"sdkConfigs" : { "sdkConfigs": {
"oauth" : { "oauth": {
"univerify" : {}, "univerify": {},
"weixin" : { "weixin": {
"appid" : "", "appid": "",
"appsecret" : "", "appsecret": "",
"UniversalLinks" : "" "UniversalLinks": ""
}, },
"apple" : {} "apple": {}
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册