@tianqing123
2019-07-19T04:59:13.000000Z
字数 790
阅读 645
点秀
| 功能 | 接口 | 入参 | 出参 | code | 说明 |
|---|---|---|---|---|---|
| 应用命令执行 | command/pub/execute | sellerId(商户号),code(屏幕号),appId(应用id),cmd(命令),"data":"给终端的参数" | isSuccess:"true/false" | 0 | 第三方调用,对外暴露的下发命令的接口 |
使用示例一var testAPIUrl = 'http://ljapi.swao.cn/'; // 测试api接口地址var prodAPIUrl = 'http://172.16.18.131:9050/'; // 正式api接口地址// 发送的数据var guahaoPushData = [{"doctor_id":"1","doctor_name":"张嘉佳123","doctor_title":"专家医师","room_name":"心胸科","doctor_status":"就诊","registered":"10","no_visit":"5","max_registered":"50","time":"上午"}]var ajaxData = {sellerId: '6', // 商户号code: 'cs002', // 屏幕号appId: '225__403__2_17', // 应用号cmd: 'thirdApp', // 下发的命令,固定为thirdAppdata: {list:guahaoPushData} // 下发的挂号数据};$.ajax({type: 'POST',url: prodAPIUrl+'command/pub/execute',data: JSON.stringify(ajaxData),dataType: 'json',contentType: 'application/json',success: function (res) {if (res.code == 0) {alert('发送完成')}}});
