财务系统开发文档>短信接口
quot;模板审核失败", ] ] 获取失败 [ 'status'=>'error', 'msg'=>'模板ID错误', ]2)、createCnTemplate($params) //创建国内模板 函数接收参数: $params['title'] //模板标题 $params['content'] //模板内容 $params['remark'] //模板备注 返回数据格式: status//状态只有两种(成功success,失败error) template_id//模板的ID, template_status//只能是1,2,3(1正在审核,2审核通过,3未通过审核) msg//接口返回的错误消息传给msg参数 成功 [ 'status'=>'success', 'template'=>[ 'template_id'=>'w34da', 'template_status'=>1, ] ] 失败 [ 'status'=>'error', 'msg'=>'模板ID错误', ]3)、putCnTemplate($params) //修改国内模板 函数接收参数: $params['template_id'] //模板ID $params['title'] //模板标题 $params['content'] //模板内容 $params['remark'] //模板备注 返回数据格式: status//状态只有两种(成功success,失败error) template_status//只能是1,2,3(1正在审核,2审核通过,3未通过审核) msg//接口返回的错误消息传给msg参数 成功 [ 'status'=>'success', 'template'=>[ 'template_status'=>2, ] ] 失败 [ 'status'=>'error', 'msg'=>'模板ID错误', ]4)、deleteCnTemplate($params) //删除国内模板 函数接收参数: $params['template_id'] //模板ID 返回数据格式: status//状态只有两种(成功success,失败error) template_status//只能是1,2,3(1正在审核,2审核通过,3未通过审核) msg//接口返回的错误消息传给msg参数 成功 [ 'status'=>'success', ] 失败 [ 'status'=>'error', 'msg'=>'模板ID错误', ]5)、sendCnSms($params) //发送国内短信 函数接收参数: $params['template_id'] //模板ID $params['templateParam'] //替换模板内容的参数 $params['content'] //模板内容 $params['mobile'] //模板手机号 返回数据格式: status//状态只有两种(成功success,失败error) content//替换参数过后的模板内容 msg//接口返回的错误消息传给msg参数 成功 [ 'status'=>'success', 'content'=>'验证码43543发送成功', ] 失败 [ 'status'=>'error', 'content'=>'error', 'msg'=>'手机号错误', ]6)、国际接口函数(如果该接口支持国际接口就写,没有则不写) 国际接口函数有 getGlobalTemplate//获取国际模板 createGlobalTemplate//创建国际模板 putGlobalTemplate//修改国际模板 deleteGlobalTemplate//删除国际模板 sendGlobalTemplate//发送国际短信 函数接收参数: 同国内函数对应 返回数据格式: 同国内函数对应