Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
unidocs-zh
提交
149e9e09
unidocs-zh
项目概览
DCloud
/
unidocs-zh
通知
3597
Star
108
Fork
921
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
120
列表
看板
标记
里程碑
合并请求
109
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
unidocs-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
120
Issue
120
列表
看板
标记
里程碑
合并请求
109
合并请求
109
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
149e9e09
编写于
8月 10, 2022
作者:
study夏羽
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://github.com/dcloudio/unidocs-zh
上级
5dfcb70a
938da508
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
6 deletion
+6
-6
docs/.vuepress/public/svg/uni-open-bridge.svg
docs/.vuepress/public/svg/uni-open-bridge.svg
+1
-0
docs/uniCloud/svg/uni-open-bridge.svg
docs/uniCloud/svg/uni-open-bridge.svg
+0
-1
docs/uniCloud/uni-open-bridge.md
docs/uniCloud/uni-open-bridge.md
+5
-5
未找到文件。
docs/.vuepress/public/svg/uni-open-bridge.svg
0 → 100644
浏览文件 @
149e9e09
<?xml version="1.0" encoding="utf-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"788"
height=
"332"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
><source>
<![CDATA[Created with Raphaël 2.1.2开发者开发者uni–open–bridgeuni–open–bridgeuni–open–bridge–commonuni–open–bridge–common微信服务器微信服务器Redis和数据库Redis和数据库服务器http定时请求(1小时)获取 access_token返回 access_tokenuniCloud引入公共模块]]>
</source><desc
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
Created with Raphaël 2.1.2
</desc><defs
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
><path
stroke-linecap=
"round"
d=
"M5,0 0,2.5 5,5z"
id=
"raphael-marker-block-obj454"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><marker
id=
"raphael-marker-endblock55-obj455"
markerHeight=
"5"
markerWidth=
"5"
orient=
"auto"
refX=
"2.5"
refY=
"2.5"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
><use
xlink:href=
"#raphael-marker-block-obj454"
transform=
"rotate(180 2.5 2.5) scale(1,1)"
stroke-width=
"1.0000"
fill=
"#000"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></use></marker><path
stroke-linecap=
"round"
d=
"M6,1 1,3.5 6,6"
id=
"raphael-marker-open-obj453"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><marker
id=
"raphael-marker-endopen77-obj456"
markerHeight=
"7"
markerWidth=
"7"
orient=
"auto"
refX=
"4"
refY=
"3.5"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
><use
xlink:href=
"#raphael-marker-open-obj453"
transform=
"rotate(180 3.5 3.5) scale(1,1)"
stroke-width=
"1.0000"
fill=
"none"
stroke=
"#000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></use></marker></defs><rect
x=
"10"
y=
"20"
width=
"68"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"20"
y=
"30"
width=
"48"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"44"
y=
"38"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
开发者
</tspan></text><rect
x=
"10"
y=
"276"
width=
"68"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"20"
y=
"286"
width=
"48"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"44"
y=
"294"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
开发者
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M44,56L44,276"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"98"
y=
"20"
width=
"156"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"108"
y=
"30"
width=
"136"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"176"
y=
"38"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
uni–open–bridge
</tspan></text><rect
x=
"98"
y=
"276"
width=
"156"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"108"
y=
"286"
width=
"136"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"176"
y=
"294"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
uni–open–bridge
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M176,56L176,276"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"274"
y=
"20"
width=
"220"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"284"
y=
"30"
width=
"200"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"384"
y=
"38"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
uni–open–bridge–common
</tspan></text><rect
x=
"274"
y=
"276"
width=
"220"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"284"
y=
"286"
width=
"200"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"384"
y=
"294"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
uni–open–bridge–common
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M384,56L384,276"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"514"
y=
"20"
width=
"100"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"524"
y=
"30"
width=
"80"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"564"
y=
"38"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
微信服务器
</tspan></text><rect
x=
"514"
y=
"276"
width=
"100"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"524"
y=
"286"
width=
"80"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"564"
y=
"294"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
微信服务器
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M564,56L564,276"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"634"
y=
"20"
width=
"124"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"644"
y=
"30"
width=
"104"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"696"
y=
"38"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
Redis和数据库
</tspan></text><rect
x=
"634"
y=
"276"
width=
"124"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"644"
y=
"286"
width=
"104"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"696"
y=
"294"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
Redis和数据库
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M696,56L696,276"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"70"
y=
"73"
width=
"80"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"110"
y=
"81"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
服务器http
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M44,92C44,92,146.93215203285217,92,171.0066153256921,92"
stroke-width=
"2"
marker-end=
"url(#raphael-marker-endblock55-obj455)"
stroke-dasharray=
"6,2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"220"
y=
"109"
width=
"120"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"280"
y=
"117"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
定时请求(1小时)
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M176,128C176,128,347.3347256183624,128,378.999859234842,128"
stroke-width=
"2"
marker-end=
"url(#raphael-marker-endblock55-obj455)"
stroke-dasharray=
"0"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"406"
y=
"145"
width=
"136"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"474"
y=
"153"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
获取 access_token
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M384,164C384,164,529.9265899658203,164,558.9979028105736,164"
stroke-width=
"2"
marker-end=
"url(#raphael-marker-endblock55-obj455)"
stroke-dasharray=
"0"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"406"
y=
"181"
width=
"136"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"474"
y=
"189"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
返回 access_token
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M564,200C564,200,405.63203716278076,200,385.9906980218366,200"
stroke-width=
"2"
marker-end=
"url(#raphael-marker-endopen77-obj456)"
stroke-dasharray=
"6,2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"0"
y=
"0"
width=
"0"
height=
"0"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"540"
y=
"225"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"225"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M384,220C384,220,667.435546875,220,694.0076293945312,220"
stroke-width=
"2"
marker-end=
"url(#raphael-marker-endopen77-obj456)"
stroke-dasharray=
"0"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"134"
y=
"237"
width=
"160"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"214"
y=
"245"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
uniCloud引入公共模块
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M44,256C44,256,336.9430818557739,256,378.9964344268665,256"
stroke-width=
"2"
marker-end=
"url(#raphael-marker-endblock55-obj455)"
stroke-dasharray=
"6,2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path></svg>
\ No newline at end of file
docs/uniCloud/svg/uni-open-bridge.svg
已删除
100644 → 0
浏览文件 @
5dfcb70a
<?xml version="1.0" encoding="utf-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"620"
height=
"286"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
><source>
<![CDATA[Created with Raphaël 2.1.2uni-open-bridgeuniOpenBridgeuniOpenBridgeuniOpenBridgeCommonuniOpenBridgeCommon微信服务器微信服务器Redis和数据库Redis和数据库定时请求(1小时)获取 access_token返回 access_token]]>
</source><desc
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
Created with Raphaël 2.1.2
</desc><defs
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
><path
stroke-linecap=
"round"
d=
"M5,0 0,2.5 5,5z"
id=
"raphael-marker-block-obj258"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><marker
id=
"raphael-marker-endblock55-obj259"
markerHeight=
"5"
markerWidth=
"5"
orient=
"auto"
refX=
"2.5"
refY=
"2.5"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
><use
xlink:href=
"#raphael-marker-block-obj258"
transform=
"rotate(180 2.5 2.5) scale(1,1)"
stroke-width=
"1.0000"
fill=
"#000"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></use></marker><path
stroke-linecap=
"round"
d=
"M6,1 1,3.5 6,6"
id=
"raphael-marker-open-obj257"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><marker
id=
"raphael-marker-endopen77-obj260"
markerHeight=
"7"
markerWidth=
"7"
orient=
"auto"
refX=
"4"
refY=
"3.5"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
><use
xlink:href=
"#raphael-marker-open-obj257"
transform=
"rotate(180 3.5 3.5) scale(1,1)"
stroke-width=
"1.0000"
fill=
"none"
stroke=
"#000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></use></marker></defs><rect
x=
"10"
y=
"10"
width=
"130"
height=
"26"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"15"
y=
"15"
width=
"120"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"75"
y=
"23"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
uni-open-bridge
</tspan></text><rect
x=
"10"
y=
"46"
width=
"124"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"20"
y=
"56"
width=
"104"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"72"
y=
"64"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
uniOpenBridge
</tspan></text><rect
x=
"10"
y=
"230"
width=
"124"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"20"
y=
"240"
width=
"104"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"72"
y=
"248"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
uniOpenBridge
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M72,82L72,230"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"154"
y=
"46"
width=
"172"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"164"
y=
"56"
width=
"152"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"240"
y=
"64"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
uniOpenBridgeCommon
</tspan></text><rect
x=
"154"
y=
"230"
width=
"172"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"164"
y=
"240"
width=
"152"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"240"
y=
"248"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
uniOpenBridgeCommon
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M240,82L240,230"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"346"
y=
"46"
width=
"100"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"356"
y=
"56"
width=
"80"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"396"
y=
"64"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
微信服务器
</tspan></text><rect
x=
"346"
y=
"230"
width=
"100"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"356"
y=
"240"
width=
"80"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"396"
y=
"248"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
微信服务器
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M396,82L396,230"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"466"
y=
"46"
width=
"124"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"476"
y=
"56"
width=
"104"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"528"
y=
"64"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
Redis和数据库
</tspan></text><rect
x=
"466"
y=
"230"
width=
"124"
height=
"36"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"none"
stroke=
"#000000"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><rect
x=
"476"
y=
"240"
width=
"104"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"528"
y=
"248"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
Redis和数据库
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M528,82L528,230"
stroke-width=
"2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"96"
y=
"99"
width=
"120"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"156"
y=
"107"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
定时请求(1小时)
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M72,118C72,118,207.09250116348267,118,234.9949074096512,118"
stroke-width=
"2"
marker-end=
"url(#raphael-marker-endblock55-obj259)"
stroke-dasharray=
"0"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"250"
y=
"135"
width=
"136"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"318"
y=
"143"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
获取 access_token
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M240,154C240,154,364.35252928733826,154,391.00817399297375,154"
stroke-width=
"2"
marker-end=
"url(#raphael-marker-endblock55-obj259)"
stroke-dasharray=
"0"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"250"
y=
"171"
width=
"136"
height=
"16"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"318"
y=
"179"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"6"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
>
返回 access_token
</tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M396,190C396,190,260.1730127334595,190,242.00084744486958,190"
stroke-width=
"2"
marker-end=
"url(#raphael-marker-endopen77-obj260)"
stroke-dasharray=
"6,2"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path><rect
x=
"0"
y=
"0"
width=
"0"
height=
"0"
r=
"0"
rx=
"0"
ry=
"0"
fill=
"#ffffff"
stroke=
"none"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></rect><text
x=
"384"
y=
"215"
text-anchor=
"middle"
font=
"10px "Arial""
stroke=
"none"
fill=
"#000000"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: middle; font: 16px "Andale Mono", monospace;"
font-size=
"16px"
font-family=
"Andale Mono, monospace"
><tspan
dy=
"215"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></tspan></text><path
fill=
"none"
stroke=
"#000000"
d=
"M240,210C240,210,500.5616455078125,210,526.0071187019348,210"
stroke-width=
"2"
marker-end=
"url(#raphael-marker-endopen77-obj260)"
stroke-dasharray=
"0"
style=
"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
></path></svg>
\ No newline at end of file
docs/uniCloud/uni-open-bridge.md
浏览文件 @
149e9e09
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
`uni-open-bridge`
由云对象
`uni-open-bridge`
和公共模块
`uni-open-bridge-common`
两部分组成
`uni-open-bridge`
由云对象
`uni-open-bridge`
和公共模块
`uni-open-bridge-common`
两部分组成
<img
src=
"/svg/uni-open-bridge.svg"
></img>
## 简介
## 简介
调用微信绝大多数后台接口时都需使用
`access_token`
、
`session_key`
、
`ticket`
开发者需要进行统一保存,部分参数需要定时刷新。为了解决这个问题,使用公共模块
`uni-open-bridge-common`
统一调用,详情见下文说明
调用微信绝大多数后台接口时都需使用
`access_token`
、
`session_key`
、
`ticket`
开发者需要进行统一保存,部分参数需要定时刷新。为了解决这个问题,使用公共模块
`uni-open-bridge-common`
统一调用,详情见下文说明
...
@@ -18,8 +20,6 @@
...
@@ -18,8 +20,6 @@
uniCloud 用户应通过引入公共模块
`uni-open-bridge-commmon`
操作数据,非 uniCloud 用户通过 http 的方式
uniCloud 用户应通过引入公共模块
`uni-open-bridge-commmon`
操作数据,非 uniCloud 用户通过 http 的方式
<img
src=
"/uniCloud/svg/uni-open-bridge.svg"
></img>
### uni-open-bridge 配置
### uni-open-bridge 配置
配置文件需要依赖
`uni-config-center`
,在
`uni-config-center`
根目录添加文件夹
`uni-open-bridge`
, 新增
`config.json`
, 内容如下
配置文件需要依赖
`uni-config-center`
,在
`uni-config-center`
根目录添加文件夹
`uni-open-bridge`
, 新增
`config.json`
, 内容如下
...
@@ -236,9 +236,9 @@ https://xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx.bspapp.com/uni-open-bridge/removeTi
...
@@ -236,9 +236,9 @@ https://xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx.bspapp.com/uni-open-bridge/removeTi
`uni-open-bridge-common`
支持多层 读取 / 写入 机制,
`redis -> database -> fallback`
,优先级如下:
`uni-open-bridge-common`
支持多层 读取 / 写入 机制,
`redis -> database -> fallback`
,优先级如下:
如果用户没有开通
`redis`
或者操作失败,透传到
`database`
,
`database`
失败后,如果用户配置了
`fallback`
,继续调用
`fallback`
方法,否则抛出
`Error`
如果用户没有开通
`redis`
或者操作失败,透传到
`database`
,
`database`
失败后,如果用户配置了
`fallback`
,继续调用
`fallback`
方法,否则抛出
`Error`
,
`database`
对应的表为:
`opendb-open-data`
`database`
对应的表为:
`opendb-open-data`
在微信的多个业务中都需要用到
`access_token`
、
`session_key`
、
`encrypt_key`
、
`ticket`
,在客户端任意地方调用
`wx.login()`
后
`session_key`
将失效,需要开发者统一管理,详情见下文说明。
### access_token
### access_token
...
@@ -625,4 +625,4 @@ exports.main = async (event, context) => {
...
@@ -625,4 +625,4 @@ exports.main = async (event, context) => {
### 注意事项
### 注意事项
-
所有方法类型为
`async`
,需要使用
`await`
-
所有方法类型为
`async`
,需要使用
`await`
-
所有方法校验
`key`
属性是否有效,无效则
`throw new Error()`
,对
`value`
仅校验是否为
`
undefined
`
-
所有方法校验
`key`
属性是否有效,无效则
`throw new Error()`
,对
`value`
仅校验是否为
`
Object
`
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录