作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

模拟渲染

... ... @@ -11,6 +11,7 @@ use cmf\controller\WeChatBaseController;
use cmf\controller\HomeBaseController;
use EasyWeChat\Foundation\Application;
use think\db;
use Yunpian\Sdk\YunpianClient;
class TestController extends WeChatBaseController
{
// public function _initialize()
... ... @@ -92,4 +93,15 @@ class TestController extends WeChatBaseController
public function details(){
}
public function sendMessage(){
$clnt = YunpianClient::create();
$param = [YunpianClient::MOBILE => '17694933850',YunpianClient::TEXT => '【云片网】您的验证码是1234'];
$r = $clnt->sms()->single_send($param);
var_dump($r);
if($r->isSucc()){
$r->data()
}
}
}
... ...
... ... @@ -32,7 +32,8 @@
"hooklife/thinkphp5-wechat": "^1.1",
"topthink/think-worker": "^2.0",
"workerman/workerman-for-win": "^3.5",
"workerman/mysql": "^1.0"
"workerman/mysql": "^1.0",
"yunpian/yunpian-php-sdk" : "1.0"
},
"extra": {
},
... ...
... ... @@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "6796e3771b6de2a35c96ce41a387225c",
"content-hash": "df16497a4d05f970a46c12666882c54d",
"packages": [
{
"name": "doctrine/cache",
... ... @@ -1885,6 +1885,52 @@
"event-loop"
],
"time": "2017-08-28T10:05:00+00:00"
},
{
"name": "yunpian/yunpian-php-sdk",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://github.com/yunpian/yunpian-php-sdk.git",
"reference": "62a467a32a1ccb3d674f4ab0cb57a62ba1d69486"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yunpian/yunpian-php-sdk/zipball/62a467a32a1ccb3d674f4ab0cb57a62ba1d69486",
"reference": "62a467a32a1ccb3d674f4ab0cb57a62ba1d69486",
"shasum": ""
},
"require": {
"guzzlehttp/guzzle": "~6.0",
"php": ">=5.6.0"
},
"require-dev": {
"phpunit/phpunit": "~5.7"
},
"type": "library",
"autoload": {
"psr-4": {
"Yunpian\\Sdk\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "dzh",
"email": "daizhong@yunpian.com",
"role": "Developer"
}
],
"description": "Yunpian PHP SDK",
"homepage": "https://github.com/yunpian/yunpian-php-sdk",
"keywords": [
"sdk",
"yunpian"
],
"time": "2017-03-14T07:30:39+00:00"
}
],
"packages-dev": [],
... ...
... ... @@ -75,7 +75,6 @@
<tr>
<th>设备位置<span class="form-required">*</span></th>
<td>
>
<select name="location" required id="lightLocation">
<option value="">请选择设备位置</option>
<notempty name="location"
... ...
... ... @@ -12,6 +12,7 @@ return array(
'think\\captcha\\' => array($vendorDir . '/topthink/think-captcha/src'),
'think\\' => array($vendorDir . '/topthink/think-image/src'),
'mindplay\\annotations\\' => array($vendorDir . '/mindplay/annotations/src/annotations'),
'Yunpian\\Sdk\\' => array($vendorDir . '/yunpian/yunpian-php-sdk/src'),
'Workerman\\MySQL\\' => array($vendorDir . '/workerman/mysql/src'),
'Workerman\\' => array($vendorDir . '/workerman/workerman', $vendorDir . '/workerman/workerman-for-win'),
'Symfony\\Polyfill\\Php70\\' => array($vendorDir . '/symfony/polyfill-php70'),
... ...
... ... @@ -35,6 +35,10 @@ class ComposerStaticInit929fb365b9981d29459d58f676689cf7
array (
'mindplay\\annotations\\' => 21,
),
'Y' =>
array (
'Yunpian\\Sdk\\' => 12,
),
'W' =>
array (
'Workerman\\MySQL\\' => 16,
... ... @@ -119,6 +123,10 @@ class ComposerStaticInit929fb365b9981d29459d58f676689cf7
array (
0 => __DIR__ . '/..' . '/mindplay/annotations/src/annotations',
),
'Yunpian\\Sdk\\' =>
array (
0 => __DIR__ . '/..' . '/yunpian/yunpian-php-sdk/src',
),
'Workerman\\MySQL\\' =>
array (
0 => __DIR__ . '/..' . '/workerman/mysql/src',
... ...
... ... @@ -1952,5 +1952,53 @@
"asynchronous",
"event-loop"
]
},
{
"name": "yunpian/yunpian-php-sdk",
"version": "1.0.0",
"version_normalized": "1.0.0.0",
"source": {
"type": "git",
"url": "https://github.com/yunpian/yunpian-php-sdk.git",
"reference": "62a467a32a1ccb3d674f4ab0cb57a62ba1d69486"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yunpian/yunpian-php-sdk/zipball/62a467a32a1ccb3d674f4ab0cb57a62ba1d69486",
"reference": "62a467a32a1ccb3d674f4ab0cb57a62ba1d69486",
"shasum": ""
},
"require": {
"guzzlehttp/guzzle": "~6.0",
"php": ">=5.6.0"
},
"require-dev": {
"phpunit/phpunit": "~5.7"
},
"time": "2017-03-14T07:30:39+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"psr-4": {
"Yunpian\\Sdk\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "dzh",
"email": "daizhong@yunpian.com",
"role": "Developer"
}
],
"description": "Yunpian PHP SDK",
"homepage": "https://github.com/yunpian/yunpian-php-sdk",
"keywords": [
"sdk",
"yunpian"
]
}
]
... ...