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
3141d728
Commit
3141d728
authored
Jan 24, 2019
by
谈海涛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-sign'
parents
375369c3
e6abda96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
118 additions
and
0 deletions
+118
-0
DrawActivity.php
src/ucenter/DrawActivity.php
+25
-0
Prize.php
src/ucenter/Prize.php
+79
-0
Course.php
src/xue/Course.php
+14
-0
No files found.
src/ucenter/DrawActivity.php
0 → 100644
View file @
3141d728
<?php
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
/**
* Class DrawActivity
*
* @package internalApi\ucenter
*/
class
DrawActivity
extends
Client
{
/**
* 获取当前正在进行的抽奖活动详情
*
* @throws \internalApi\base\ApiException
*/
public
static
function
getCurrentActivity
()
{
return
self
::
call
(
'drawActivity.getCurrentActivity'
);
}
}
\ No newline at end of file
src/ucenter/Prize.php
0 → 100644
View file @
3141d728
<?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'
));
}
/**
* 根据用户id获取中奖记录列表
*
* @param integer $uid
*
* @return array|null|\yii\db\ActiveRecord
*/
public
static
function
getPrizeRaffleListByUid
(
$uid
)
{
return
self
::
call
(
'prize.getPrizeRaffleListByUid'
,
compact
(
'uid'
));
}
}
\ No newline at end of file
src/xue/Course.php
View file @
3141d728
...
@@ -67,4 +67,18 @@ class Course extends Client
...
@@ -67,4 +67,18 @@ class Course extends Client
return
self
::
call
(
'course.getCourseDetails'
,
compact
(
'courseIds'
));
return
self
::
call
(
'course.getCourseDetails'
,
compact
(
'courseIds'
));
}
}
/**
* 生成订单记录
*
* @param int $userId 用户id
* @param int $courseId 课程id
* @param string $orderId 订单id
*
* @return bool
*/
public
static
function
sendCourse
(
$userId
,
$courseId
,
$orderId
){
return
self
::
call
(
'course.sendCourse'
,
compact
(
'userId'
,
'courseId'
,
'orderId'
));
}
}
}
\ 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