博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
php 调用 web Server(短信接口示例)
阅读量:7021 次
发布时间:2019-06-28

本文共 923 字,大约阅读时间需要 3 分钟。

1             if ($messageApiUrl != NULL && $messageInterface != NULL) { 2                 $client = new soapclient($messageApiUrl); 3                 $message_content = '尊敬的' . $wxName . ', ' . $messageDesc; 4                 $message_content .= '消费店铺:' . $tempBranch . ';消费金额:¥' . $tempPayAmount . ';消费积分:' . $tempDeductedPoint . ';积分余额:' . $tempAccountMemberPoint; 5                 $schedule_time = time(); 6                 $messageParam = array('username' => $messageAccount, 'userpwd' => $messagePsw, 'sendcont' => $message_content, 'sendmobile' => $wxMobile, 'senddate' => $schedule_time); 7                 $resMessage = $client->__call('SmsSend', array($messageParam)); 8                 $resMessage2 = get_object_vars($resMessage); 9                 if ($resMessage2['SmsSendResult'] == '1_1') {10                     //短信发送成功11                 }12             }

 

转载于:https://www.cnblogs.com/gmblog/p/4608158.html

你可能感兴趣的文章
Nginx的nginx.conf配置文件中文注释说明
查看>>
Java 反射 Method threw 'java.lang.InstantiationException' exception.
查看>>
VMware虚拟机创建安装之后不出现VMnet1和VMnet8虚拟网卡
查看>>
Beam Search
查看>>
xtrabackup单表备份与恢复
查看>>
TSringGrid用法(转)
查看>>
spring cloud学习(七)Spring Cloud Config(续)
查看>>
多数据源配置与使用(1)(三十二)
查看>>
向上转型,向下转型
查看>>
2011年暑假学习总结
查看>>
Centos7下yum安装kubernetes
查看>>
实时分布式搜索引擎比较(senseidb、Solr、elasticsearch)
查看>>
linux常用命令.1
查看>>
keras用法
查看>>
OSPF(Open Shortest Path First开放式最短路径优先 -链路状态路由协议
查看>>
课堂小技巧
查看>>
VS2010 删除空行
查看>>
【12c OCP】最新CUUG OCP-071考试题库(51题)
查看>>
Centos 安装ImageMagick 与 imagick for php步骤详解
查看>>
ABPIAbpSession
查看>>