...
|
...
|
@@ -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);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|