Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
cailing
9 years ago
Commit
bd785b67e40d095be40cfb573a9e7a3e514f2fdc
1 parent
22cd084a
RPC换接口
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
library/LibModels/Wap/Category/BrandData.php
library/LibModels/Wap/Cuxiao/ActivityData.php
library/LibModels/Wap/Category/BrandData.php
View file @
bd785b6
...
...
@@ -224,10 +224,10 @@ class BrandData
* @modify sefon 2016-4-29 01:59:23
* @return array
*/
public
static
function
getBrandLogoByDomain
(
$domain
)
{
return
Yohobuy
::
yarClient
(
Yohobuy
::
SERVICE_URL
.
'/shops/service/v1/brand'
,
'getBrandByDomain'
,
array
(
$domain
));
}
// public static function getBrandLogoByDomain($domain)
// {
// return Yohobuy::yarClient(Yohobuy::SERVICE_URL . '/shops/service/v1/brand', 'getBrandByDomain', array($domain));
// }
/**
* 根据品牌域名获取品牌店铺信息
...
...
library/LibModels/Wap/Cuxiao/ActivityData.php
View file @
bd785b6
...
...
@@ -123,12 +123,27 @@ class ActivityData
* @param string $call_back
* @return array
*/
// public static function message($uid, $title, $content, $type = 1, $verify_key = '', $send_uid = 0, $call_back = '')
// {
// //调用接口发送站内信
// return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_SEND_MESSAGE, 'setSingleMessage', array(
// $uid, $title, $content, $type, $verify_key, $send_uid, $call_back
// ));
// }
public
static
function
message
(
$uid
,
$title
,
$content
,
$type
=
1
,
$verify_key
=
''
,
$send_uid
=
0
,
$call_back
=
''
)
{
//调用接口发送站内信
return
Yohobuy
::
yarClient
(
Yohobuy
::
SERVICE_URL
.
self
::
URI_SEND_MESSAGE
,
'setSingleMessage'
,
array
(
$uid
,
$title
,
$content
,
$type
,
$verify_key
,
$send_uid
,
$call_back
));
$param
=
array
();
$param
=
Yohobuy
::
param
();
$param
[
'method'
]
=
'web.inbox.setSingleMessage'
;
$param
[
'uid'
]
=
$uid
;
$param
[
'send_uid'
]
=
$send_uid
;
$param
[
'verify_key'
]
=
$verify_key
;
$param
[
'content'
]
=
$content
;
$param
[
'title'
]
=
$title
;
$param
[
'type'
]
=
$type
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
post
(
Yohobuy
::
API_URL
,
$param
);
}
/**
...
...
Please
register
or
login
to post a comment