Authored by cailing

RPC换接口

... ... @@ -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));
// }
/**
* 根据品牌域名获取品牌店铺信息
... ...
... ... @@ -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);
}
/**
... ...