Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
f6f39318
Commit
f6f39318
authored
Dec 24, 2019
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复短信服务调用错误
parent
8dbfcbaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
ucenter_message.php
example/ucenter_message.php
+5
-1
client_config_dev.php
src/client_config_dev.php
+1
-1
Message.php
src/ucenter/Message.php
+2
-2
No files found.
example/ucenter_message.php
View file @
f6f39318
...
@@ -16,7 +16,11 @@ Message::setDebug();
...
@@ -16,7 +16,11 @@ Message::setDebug();
//$ret = Message::sendTemplateSmsByUidAsync('12', 'default_code', ['code'=>rand(1000, 9999)]);
//$ret = Message::sendTemplateSmsByUidAsync('12', 'default_code', ['code'=>rand(1000, 9999)]);
//$ret = Message::sendSms('18019580609', 'Hello World 3');
//$ret = Message::sendSms('18019580609', 'Hello World 3');
//$ret = Message::sendTemplateSms('18019580609', 'default_code', ['code'=>rand(1000, 9999)]);
$ret
=
Message
::
sendTemplateSms
(
'18019580609'
,
'shop_item_shipped'
,
[
'order'
=>
'4124'
,
'express'
=>
'顺丰速运'
,
'number'
=>
'sf123456'
]);
//Message::setUserOnline(12, 60);
//Message::setUserOnline(12, 60);
//$ret = Message::isUseOnline(12);
//$ret = Message::isUseOnline(12);
...
...
src/client_config_dev.php
View file @
f6f39318
...
@@ -11,7 +11,7 @@ return [
...
@@ -11,7 +11,7 @@ return [
'apiUrl'
=>
'http://u.yunya.com/api/server'
,
'apiUrl'
=>
'http://u.yunya.com/api/server'
,
'clientId'
=>
'common'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
,
'rpcServer'
=>
'1
27.0.0.1
:9503'
'rpcServer'
=>
'1
92.168.99.185
:9503'
],
],
'xue'
=>
[
'xue'
=>
[
'apiUrl'
=>
'http://xue.yunya.com/api'
,
'apiUrl'
=>
'http://xue.yunya.com/api'
,
...
...
src/ucenter/Message.php
View file @
f6f39318
...
@@ -64,7 +64,7 @@ class Message extends Client
...
@@ -64,7 +64,7 @@ class Message extends Client
public
static
function
sendTemplateSms
(
$tel
,
$templateId
,
$templateParams
=
[],
$signature
=
null
)
public
static
function
sendTemplateSms
(
$tel
,
$templateId
,
$templateParams
=
[],
$signature
=
null
)
{
{
//return self::call('message.sendTemplateSms', compact('tel', 'templateId', 'templateParams', 'signature'));
//return self::call('message.sendTemplateSms', compact('tel', 'templateId', 'templateParams', 'signature'));
return
self
::
invoke
(
'/sms/sendTemplate
Sms
'
,
func_get_args
());
return
self
::
invoke
(
'/sms/sendTemplate'
,
func_get_args
());
}
}
/**
/**
...
@@ -78,7 +78,7 @@ class Message extends Client
...
@@ -78,7 +78,7 @@ class Message extends Client
*/
*/
public
static
function
sendTemplateSmsAsync
(
$tel
,
$templateId
,
$templateParams
=
[],
$signature
=
null
)
public
static
function
sendTemplateSmsAsync
(
$tel
,
$templateId
,
$templateParams
=
[],
$signature
=
null
)
{
{
return
self
::
emit
(
'/sms/sendTemplateSms
Async'
,
func_get_args
());
return
self
::
invoke
(
'/sms/sendTemplate
Async'
,
func_get_args
());
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment