|
发表于 2016-7-29 14:33:50
|
显示全部楼层
- var CURLOPT_RETURNTRANSFER = 19913
- var CURLOPT_HTTPHEADER = 10023
- var CURLOPT_NOSIGNAL = 99
- var CURLOPT_CUSTOMREQUEST = 10036
- var CURLOPT_POSTFIELDS = 10015
- //响应App点击
- function _mainbutton(arg)
- var header = array("Authorization:Bearer eqTootsGJrhpUXwrWAkst6NlCvyhiCzifo2Lpbs6X-Huoban-H5-Info:{"encrypt_app_type":"complete","encrypt_app_id":"2ecd20d612fda2589ed94cbf39da83d8"}")
- 变量 ch = curl初始化会话("https://api.huoban.com/v1/item/30162717")
- curl设置会话选项(ch, CURLOPT_RETURNTRANSFER, 1)
- curl设置会话选项(ch, CURLOPT_HTTPHEADER, header)
- curl设置会话选项(ch, CURLOPT_CUSTOMREQUEST, "PUT")
- curl设置会话选项(ch, CURLOPT_POSTFIELDS, "{"fields":{"9108529":"测试 测试","9108696":["3466735"]}}")
- 变量 result = curl执行会话(ch)
- curl关闭会话(ch)
- filelog(result)
- end
复制代码
自己根据这个代码做下修复 就OK了 |
|