Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
652c68ed
Commit
652c68ed
authored
Jan 10, 2019
by
谈海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
奖品接口
parent
2d3e1017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
0 deletions
+67
-0
Prize.php
src/ucenter/Prize.php
+67
-0
No files found.
src/ucenter/Prize.php
0 → 100644
View file @
652c68ed
<?php
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
/**
* Class Prize
*
* @package internalApi\ucenter
*/
class
Prize
extends
Client
{
/**
* 根据id获取奖品数据
*
* @param array $ids 奖品id数组
* @return array 奖品信息
* @throws \internalApi\base\ApiException
*/
public
static
function
getPrizeListByIds
(
$ids
)
{
return
self
::
call
(
'prize.getPrizeListByIds'
,
compact
(
'ids'
));
}
/**
* 获取中奖记录
* @param integer $uid 用户id
* @param integer $prizeId 奖品id
*
* @return array|null|\yii\db\ActiveRecord
*/
public
static
function
getPrizeRaffleByUid
(
$uid
,
$prizeId
)
{
return
self
::
call
(
'prize.getPrizeRaffleByUid'
,
compact
(
'uid'
,
'prizeId'
));
}
/**
* 添加中奖记录
*
* @param $uid 用户id
* @param $prizeId 奖品id
*
* @return bool
* @throws \Exception
*/
public
static
function
createPrizeRaffle
(
$uid
,
$prizeId
)
{
return
self
::
call
(
'prize.createPrizeRaffle'
,
compact
(
'uid'
,
'prizeId'
));
}
/**
* 根据用户id和奖品id获取当月中奖记录详情
*
* @param integer $uid
* @param integer $prizeId
*
* @return array|null|\yii\db\ActiveRecord
*/
public
static
function
getMonthPrizeRaffleByUid
(
$uid
,
$prizeId
)
{
return
self
::
call
(
'prize.getMonthPrizeRaffleByUid'
,
compact
(
'uid'
,
'prizeId'
));
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment