1)由平台提供,开发者可配置某广告的信息
2)URL地址:https://public.zjuhe.cn/api/configure_advertisements
3)请求参数
变量名 | 必填 | 类型 | 说明 |
code | 是 | String(128) | 专属编码(例:Zj20190924125636),平台方提供开发者访问的标识码 |
APPID | 是 | String(128) | 公众号ID(例:wx68727as88872t97),微信公众号专属标识 |
before | 是 | int(10) | 支付前页面是否显示广告位:1(显示),0(不显示) |
success | 是 | int(10) | 支付后页面是否显示广告位:1(显示),0(不显示) |
img_path | 是 | String(255) | 广告图片地址 |
url | 是 | String(255) | 广告链接地址 |
publicname | 是 | String(128) | 公众号名称(例:智聚合) |
4)举例如下:
$ date =[
‘code’ => ‘Zj20190924125636’,
‘APPID’ => ‘wx68727as88872t97’,
‘before’ => 1’,
‘success’ => 1,
‘img_path’ => ‘https://selfsale.zjuhe.cn/upload/extension/’,
‘url’ => ‘https://mp.weixin.qq.com/s/7fMEctCjH0J2hco-FcOmAw’,
‘publicname’ => ‘智聚合’
];
$result = get_http_content('https://public.zjuhe.cn/api/configure_advertisements', 'POST',$date);
5)返回结果
变量名 | 必填 | 说明 | |
code | 是 | 状态码,200为正常,其他均为不正常(1024) | |
msg | 是 | 成功或者失败的说明(例:配置成功/配置不变) | |
data | 是 | 该接口反回具体的数值 |
示例: {"code":200,"msg":"配置成功","data":{}}