...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
namespace LibModels\Wap\Cuxiao;
|
|
|
|
|
|
use Api\Sign;
|
|
|
use Api\Yohobuy;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -69,9 +70,35 @@ class ActivityData |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @param int $uid 用户UID
|
|
|
* @param string $nickName 用户昵称
|
|
|
* @param string $birthday 用户生日
|
|
|
* @param int $gender 用户性别
|
|
|
* @return mixed 抽签的结果
|
|
|
*/
|
|
|
public static function getYuanxiaoInfo($uid, $nickName, $birthday, $gender)
|
|
|
{
|
|
|
$param = Yohobuy::param();
|
|
|
$param['method'] = 'wap.activity.draw';
|
|
|
$param['uid'] = $uid;
|
|
|
$param['nick_name'] = $nickName;
|
|
|
$param['birthday'] = $birthday;
|
|
|
$param['gender'] = $gender;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 发送站内信
|
|
|
*
|
|
|
* @param int $activityId 活动ID
|
|
|
* @param int $uid
|
|
|
* @param string $title
|
|
|
* @param int $content
|
|
|
* @param int $type
|
|
|
* @param string $verify_key
|
|
|
* @param int $send_uid
|
|
|
* @param string $call_back
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function message($uid, $title, $content, $type = 1, $verify_key = '', $send_uid = 0, $call_back = '')
|
...
|
...
|
|