作者 郭盛
1 个管道 的构建 通过 耗费 3 秒

手机短信

... ... @@ -4,6 +4,7 @@
<list default="true" id="e93f11c2-a7d9-4d35-8b1c-8dd18e7f5fef" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/application/api/controller/Pay.php" afterPath="$PROJECT_DIR$/application/api/controller/Pay.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/application/nsms/nsms.php" afterPath="$PROJECT_DIR$/application/nsms/nsms.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/public/api.html" afterPath="$PROJECT_DIR$/public/api.html" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
... ... @@ -18,41 +19,35 @@
<file leaf-file-name="Pay.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="141" column="0" lean-forward="true" selection-start-line="141" selection-start-column="0" selection-end-line="141" selection-end-column="0" />
<state relative-caret-position="260">
<caret line="305" column="23" lean-forward="true" selection-start-line="305" selection-start-column="23" selection-end-line="305" selection-end-column="23" />
<folding>
<element signature="e#38#68#0#PHP" expanded="true" />
<element signature="e#569#688#0#PHP" expanded="false" />
<element signature="e#694#1007#0#PHP" expanded="false" />
<element signature="e#1012#3087#0#PHP" expanded="false" />
<element signature="e#3093#3413#0#PHP" expanded="false" />
<element signature="e#3418#5499#0#PHP" expanded="false" />
<element signature="e#5505#5923#0#PHP" expanded="false" />
<element signature="e#5928#13225#0#PHP" expanded="false" />
<element signature="e#6729#13158#0#PHP" expanded="false" />
<element signature="e#7564#7852#0#PHP" expanded="false" />
<element signature="e#7929#8202#0#PHP" expanded="false" />
<element signature="e#8358#8668#0#PHP" expanded="false" />
<element signature="e#8743#9194#0#PHP" expanded="false" />
<element signature="e#9271#10315#0#PHP" expanded="false" />
<element signature="e#10409#10527#0#PHP" expanded="false" />
<element signature="e#13242#13539#0#PHP" expanded="false" />
<element signature="e#13951#14371#0#PHP" expanded="false" />
<element signature="e#14376#21672#0#PHP" expanded="false" />
<element signature="e#16010#16298#0#PHP" expanded="false" />
<element signature="e#16374#16647#0#PHP" expanded="false" />
<element signature="e#16802#17112#0#PHP" expanded="false" />
<element signature="e#17187#17638#0#PHP" expanded="false" />
<element signature="e#17715#18759#0#PHP" expanded="false" />
<element signature="e#18853#18971#0#PHP" expanded="false" />
<element signature="e#21699#25401#0#PHP" expanded="false" />
<element signature="e#25431#28375#0#PHP" expanded="false" />
<element signature="e#28404#31854#0#PHP" expanded="false" />
<element signature="e#29280#29885#0#PHP" expanded="false" />
<element signature="e#29906#31343#0#PHP" expanded="false" />
<element signature="e#31391#31493#0#PHP" expanded="false" />
<element signature="e#31883#35620#0#PHP" expanded="false" />
<element signature="e#35643#35860#0#PHP" expanded="false" />
<element signature="e#574#693#0#PHP" expanded="false" />
<element signature="e#699#1012#0#PHP" expanded="false" />
<element signature="e#1017#3092#0#PHP" expanded="false" />
<element signature="e#3098#3418#0#PHP" expanded="false" />
<element signature="e#3423#5504#0#PHP" expanded="false" />
<element signature="e#5510#5928#0#PHP" expanded="false" />
<element signature="e#7569#7857#0#PHP" expanded="false" />
<element signature="e#7934#8207#0#PHP" expanded="false" />
<element signature="e#9276#10320#0#PHP" expanded="false" />
<element signature="e#13976#14396#0#PHP" expanded="false" />
<element signature="e#14401#21697#0#PHP" expanded="false" />
<element signature="e#16035#16323#0#PHP" expanded="false" />
<element signature="e#16399#16672#0#PHP" expanded="false" />
<element signature="e#16827#17137#0#PHP" expanded="false" />
<element signature="e#17212#17663#0#PHP" expanded="false" />
<element signature="e#17740#18784#0#PHP" expanded="false" />
<element signature="e#18878#18996#0#PHP" expanded="false" />
<element signature="e#21724#25426#0#PHP" expanded="false" />
<element signature="e#25456#28400#0#PHP" expanded="false" />
<element signature="e#28429#31879#0#PHP" expanded="false" />
<element signature="e#29305#29910#0#PHP" expanded="false" />
<element signature="e#29931#31368#0#PHP" expanded="false" />
<element signature="e#31416#31518#0#PHP" expanded="false" />
<element signature="e#31908#35645#0#PHP" expanded="false" />
<element signature="e#35668#35885#0#PHP" expanded="false" />
</folding>
</state>
</provider>
... ... @@ -117,7 +112,6 @@
<option value="$PROJECT_DIR$/public/assets/js/backend/order.js" />
<option value="$PROJECT_DIR$/application/admin/lang/zh-cn/order.php" />
<option value="$PROJECT_DIR$/application/admin/controller/Order.php" />
<option value="$PROJECT_DIR$/application/nsms/nsms.php" />
<option value="$PROJECT_DIR$/application/extra/verify.php" />
<option value="$PROJECT_DIR$/vendor/overtrue/wechat/src/Payment/Kernel/BaseClient.php" />
<option value="$PROJECT_DIR$/application/admin/view/vip/add.html" />
... ... @@ -126,6 +120,7 @@
<option value="$PROJECT_DIR$/application/admin/view/vip/edit.html" />
<option value="$USER_HOME$/Desktop/1.html" />
<option value="$PROJECT_DIR$/application/api/controller/User.php" />
<option value="$PROJECT_DIR$/application/nsms/nsms.php" />
<option value="$PROJECT_DIR$/application/api/controller/Pay.php" />
</list>
</option>
... ... @@ -144,11 +139,11 @@
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="326" />
<option name="y" value="-8" />
<option name="width" value="1776" />
<option name="height" value="1077" />
<component name="ProjectFrameBounds">
<option name="x" value="307" />
<option name="y" value="38" />
<option name="width" value="1399" />
<option name="height" value="945" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
... ... @@ -268,7 +263,7 @@
<workItem from="1574759184313" duration="4793000" />
<workItem from="1574814989178" duration="1007000" />
<workItem from="1574831367903" duration="17171000" />
<workItem from="1574849431656" duration="5170000" />
<workItem from="1574849431656" duration="8331000" />
</task>
<task id="LOCAL-00001" summary="调试">
<created>1574145133364</created>
... ... @@ -281,7 +276,7 @@
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="275998000" />
<option name="totallyTimeSpent" value="279159000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
... ... @@ -293,16 +288,17 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
<frame x="307" y="38" width="1399" height="945" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.13539445" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.18969381" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32912987" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.11969532" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.13613862" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
... ... @@ -350,20 +346,6 @@
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/application/admin/controller/Video.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="400">
<caret line="20" column="38" lean-forward="true" selection-start-line="20" selection-start-column="38" selection-end-line="20" selection-end-column="38" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/assets/js/backend/wonderful.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225">
<caret line="24" column="21" lean-forward="true" selection-start-line="24" selection-start-column="21" selection-end-line="24" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/uploads/20191118/ceshi.jpg">
<provider selected="true" editor-type-id="images">
<state />
... ... @@ -501,13 +483,6 @@
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/Desktop/助通短信平台账号/php_Nsms_demo.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/Desktop/助通短信平台账号/php_HY_demo.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-311">
... ... @@ -515,13 +490,6 @@
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/Desktop/助通短信平台账号/PHP_G_DEMO.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="414">
<caret line="67" column="0" lean-forward="true" selection-start-line="67" selection-start-column="0" selection-end-line="67" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/extend/nsms/nsms.php" />
<entry file="file://$PROJECT_DIR$/application/common/controller/Backend.php">
<provider selected="true" editor-type-id="text-editor">
... ... @@ -754,51 +722,77 @@
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/Desktop/助通短信平台账号/php_Nsms_demo.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1200">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/Desktop/助通短信平台账号/php_Nsms_demo1.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="591">
<caret line="59" column="7" lean-forward="true" selection-start-line="59" selection-start-column="7" selection-end-line="59" selection-end-column="7" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/Desktop/助通短信平台账号/PHP_G_DEMO.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="489">
<caret line="82" column="6" lean-forward="true" selection-start-line="82" selection-start-column="6" selection-end-line="82" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/Common.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-525">
<caret line="16" column="27" lean-forward="true" selection-start-line="16" selection-start-column="27" selection-end-line="16" selection-end-column="27" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/nsms/nsms.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="268">
<caret line="15" column="13" lean-forward="false" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
<state relative-caret-position="1644">
<caret line="66" column="50" lean-forward="false" selection-start-line="66" selection-start-column="50" selection-end-line="66" selection-end-column="50" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="141" column="0" lean-forward="true" selection-start-line="141" selection-start-column="0" selection-end-line="141" selection-end-column="0" />
<state relative-caret-position="260">
<caret line="305" column="23" lean-forward="true" selection-start-line="305" selection-start-column="23" selection-end-line="305" selection-end-column="23" />
<folding>
<element signature="e#38#68#0#PHP" expanded="true" />
<element signature="e#569#688#0#PHP" expanded="false" />
<element signature="e#694#1007#0#PHP" expanded="false" />
<element signature="e#1012#3087#0#PHP" expanded="false" />
<element signature="e#3093#3413#0#PHP" expanded="false" />
<element signature="e#3418#5499#0#PHP" expanded="false" />
<element signature="e#5505#5923#0#PHP" expanded="false" />
<element signature="e#5928#13225#0#PHP" expanded="false" />
<element signature="e#6729#13158#0#PHP" expanded="false" />
<element signature="e#7564#7852#0#PHP" expanded="false" />
<element signature="e#7929#8202#0#PHP" expanded="false" />
<element signature="e#8358#8668#0#PHP" expanded="false" />
<element signature="e#8743#9194#0#PHP" expanded="false" />
<element signature="e#9271#10315#0#PHP" expanded="false" />
<element signature="e#10409#10527#0#PHP" expanded="false" />
<element signature="e#13242#13539#0#PHP" expanded="false" />
<element signature="e#13951#14371#0#PHP" expanded="false" />
<element signature="e#14376#21672#0#PHP" expanded="false" />
<element signature="e#16010#16298#0#PHP" expanded="false" />
<element signature="e#16374#16647#0#PHP" expanded="false" />
<element signature="e#16802#17112#0#PHP" expanded="false" />
<element signature="e#17187#17638#0#PHP" expanded="false" />
<element signature="e#17715#18759#0#PHP" expanded="false" />
<element signature="e#18853#18971#0#PHP" expanded="false" />
<element signature="e#21699#25401#0#PHP" expanded="false" />
<element signature="e#25431#28375#0#PHP" expanded="false" />
<element signature="e#28404#31854#0#PHP" expanded="false" />
<element signature="e#29280#29885#0#PHP" expanded="false" />
<element signature="e#29906#31343#0#PHP" expanded="false" />
<element signature="e#31391#31493#0#PHP" expanded="false" />
<element signature="e#31883#35620#0#PHP" expanded="false" />
<element signature="e#35643#35860#0#PHP" expanded="false" />
<element signature="e#574#693#0#PHP" expanded="false" />
<element signature="e#699#1012#0#PHP" expanded="false" />
<element signature="e#1017#3092#0#PHP" expanded="false" />
<element signature="e#3098#3418#0#PHP" expanded="false" />
<element signature="e#3423#5504#0#PHP" expanded="false" />
<element signature="e#5510#5928#0#PHP" expanded="false" />
<element signature="e#7569#7857#0#PHP" expanded="false" />
<element signature="e#7934#8207#0#PHP" expanded="false" />
<element signature="e#9276#10320#0#PHP" expanded="false" />
<element signature="e#13976#14396#0#PHP" expanded="false" />
<element signature="e#14401#21697#0#PHP" expanded="false" />
<element signature="e#16035#16323#0#PHP" expanded="false" />
<element signature="e#16399#16672#0#PHP" expanded="false" />
<element signature="e#16827#17137#0#PHP" expanded="false" />
<element signature="e#17212#17663#0#PHP" expanded="false" />
<element signature="e#17740#18784#0#PHP" expanded="false" />
<element signature="e#18878#18996#0#PHP" expanded="false" />
<element signature="e#21724#25426#0#PHP" expanded="false" />
<element signature="e#25456#28400#0#PHP" expanded="false" />
<element signature="e#28429#31879#0#PHP" expanded="false" />
<element signature="e#29305#29910#0#PHP" expanded="false" />
<element signature="e#29931#31368#0#PHP" expanded="false" />
<element signature="e#31416#31518#0#PHP" expanded="false" />
<element signature="e#31908#35645#0#PHP" expanded="false" />
<element signature="e#35668#35885#0#PHP" expanded="false" />
</folding>
</state>
</provider>
... ...
... ... @@ -12,7 +12,7 @@ use fast\Http;
use think\Validate;
use Exception;
use function EasyWeChat\Kernel\Support\generate_sign;
use app\nsms;
use app\nsms\nsms;
/**
* 支付接口
*/
... ... @@ -302,6 +302,7 @@ class Pay extends Api
'xh' => ''//小号
);
$result = $this->send_sms($note);
var_dump($result);
return $result;
}
... ... @@ -311,9 +312,9 @@ class Pay extends Api
$url = "http://www.ztsms.cn/sendNSms.do";
$username = 'hangpai';
$password = 'Cxz307312';
$sendAPI = new nsms\sendAPI($url, $username, $password);
$sendAPI = new nsms($url, $username, $password);
$sendAPI->data = $data;/*初始化数据包*/
$return = $sendAPI->sendSMS('GET');
$return = $sendAPI->sendSMS('POST');
return $return;
}
... ...
... ... @@ -6,7 +6,7 @@ date_default_timezone_set('PRC');//设置时区
* demo仅供参考,demo最低运行环境PHP5.3
* 请确认开启PHP CURL 扩展
*/
class sendAPI {
class nsms {
public $data; //发送数据
public $timeout = 30; //超时
private $apiUrl; //发送地址
... ...
... ... @@ -6482,7 +6482,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2019-11-27 19:39:22 </div>
Generated on 2019-11-27 20:25:16 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...