mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-08 06:32:27 +08:00
fix tcb example
This commit is contained in:
@@ -23,7 +23,7 @@ wcTcb := wc.GetTcb()
|
|||||||
### 举例
|
### 举例
|
||||||
#### 触发云函数
|
#### 触发云函数
|
||||||
```golang
|
```golang
|
||||||
res, err := wcTcb.UploadFile("test-6ku2s", "golang.png")
|
res, err := wcTcb.InvokeCloudFunction("test-xxxx", "add", `{"a":1,"b":2}`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user