Commit 82d7442e authored by hujun's avatar hujun

route

parent 4884055c
......@@ -24,7 +24,7 @@ class MessageUntils {
* @param string $tempId
* @return SimpleXMLElement[]
*/
public function sendCCPSMS($to, $datas, $tempId = '79972') {
public function sendCCPSMS($to, $datas, $tempId = '214759') {
import('CCPRestSDK', EXTEND_PATH, '.php');
$accountSid = '8a48b55153eae51101540e763d3b3888';
$accountToken = '26b220de299d4a56a6f54dd5792a30e4';
......@@ -33,7 +33,6 @@ class MessageUntils {
$serverPort = '8883';
$softVersion = '2013-12-26';
// 初始化REST SDK
//global $accountSid, $accountToken, $appId, $serverIP, $serverPort, $softVersion;
$rest = new \REST($serverIP, $serverPort, $softVersion);
......
......@@ -44,5 +44,6 @@ Route::group('index',[
'member' => ['index/member.index/member',['method' => 'get']]
]);
Route::group('api',[
'login' => ['api/member/login',['method' => 'post']]
'login' => ['api/member/login',['method' => 'post']],
'sendSms/:phone' => ['api/member/sendSms',['method'=> 'get']]
]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment