do merge ActivityData.php
Showing
1 changed file
with
15 additions
and
0 deletions
@@ -15,6 +15,7 @@ use Api\Yohobuy; | @@ -15,6 +15,7 @@ use Api\Yohobuy; | ||
15 | */ | 15 | */ |
16 | class ActivityData | 16 | class ActivityData |
17 | { | 17 | { |
18 | + | ||
18 | const URI_GET_ACTIVITY_INFO = 'event/api/v1/activity/get'; | 19 | const URI_GET_ACTIVITY_INFO = 'event/api/v1/activity/get'; |
19 | const URI_GET_NAMED_COUPON = 'event/api/v1/activity/getCoupon'; | 20 | const URI_GET_NAMED_COUPON = 'event/api/v1/activity/getCoupon'; |
20 | const URI_GET_ALL_COUPON = 'event/api/v1/activity/getCoupon'; | 21 | const URI_GET_ALL_COUPON = 'event/api/v1/activity/getCoupon'; |
@@ -66,4 +67,18 @@ class ActivityData | @@ -66,4 +67,18 @@ class ActivityData | ||
66 | return Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_GET_ACTIVITY_INFO, $param, 3600); // 有缓存1小时 | 67 | return Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_GET_ACTIVITY_INFO, $param, 3600); // 有缓存1小时 |
67 | } | 68 | } |
68 | 69 | ||
70 | + /** | ||
71 | + * 发送站内信 | ||
72 | + * | ||
73 | + * @param int $activityId 活动ID | ||
74 | + * @return array | ||
75 | + */ | ||
76 | + public static function message($uid, $title, $content, $type = 1, $verify_key = '', $send_uid = 0, $call_back = '') | ||
77 | + { | ||
78 | + //调用接口发送站内信 | ||
79 | + return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_SEND_MESSAGE, 'setSingleMessage', array( | ||
80 | + $uid, $title, $content, $type, $verify_key, $send_uid, $call_back | ||
81 | + )); | ||
82 | + } | ||
83 | + | ||
69 | } | 84 | } |
-
Please register or login to post a comment