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
feb658ba
Commit
feb658ba
authored
Aug 16, 2019
by
陈国太
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d01f35bf
79f573e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
133 additions
and
0 deletions
+133
-0
ucenter_task.php
example/ucenter_task.php
+25
-0
Thread.php
src/bbs/Thread.php
+75
-0
Task.php
src/ucenter/Task.php
+33
-0
No files found.
example/ucenter_task.php
0 → 100644
View file @
feb658ba
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2019-08-12
* Time: 17:02
*/
/**
* Created by PhpStorm.
* User: xiabin
* Date: 11/09/2017
* Time: 11:54 AM
*/
use
internalApi\ucenter\Member
;
require
__DIR__
.
'/_init.php'
;
\internalApi\ucenter\Task
::
setDebug
(
true
);
\internalApi\ucenter\Task
::
trigger
(
1
,
43
);
//$data = User::canAddGoldCoin(13739230723);
print_r
(
$data
);
src/bbs/Thread.php
View file @
feb658ba
...
...
@@ -85,6 +85,18 @@ class Thread extends Client
return
self
::
call
(
'thread.getThread'
,
compact
(
'fid'
,
'page'
,
'num'
));
}
/**
* 根据帖子标题获取帖子
* @param string $keywords
* @param int $page
* @param int $num
* @return mixed
*/
public
static
function
getThreadByKeywords
(
$keywords
=
''
,
$page
,
$num
)
{
return
self
::
call
(
'thread.getThreadByKeywords'
,
compact
(
'keywords'
,
'page'
,
'num'
));
}
/**
* 获取板块帖子
* @param int $bid
...
...
@@ -115,4 +127,67 @@ class Thread extends Client
{
return
self
::
call
(
'thread.IsAnswerByThreadIds'
,
compact
(
'threadArr'
,
'userId'
));
}
/**
* 回复评论帖子
* @param $tid
* @param $message
* @param $uid
* @param $pushTime
* @return mixed
*/
public
static
function
setThreadReply
(
$tid
,
$message
,
$uid
,
$pushTime
)
{
return
self
::
call
(
'thread.setThreadReply'
,
compact
(
'tid'
,
'message'
,
'uid'
,
'pushTime'
));
}
/**
* 发布用户动态
*
* @param $message
* @param $uid
* @param $pushTime
* @param $tags
* @return mixed
*/
public
static
function
setDynamic
(
$message
,
$uid
,
$pushTime
,
$tags
)
{
return
self
::
call
(
'thread.setDynamic'
,
compact
(
'message'
,
'uid'
,
'pushTime'
,
'tags'
));
}
/**
* 点赞帖子
*
* @param $tid
* @param $uid
* @return mixed
*/
public
static
function
addThreadRecommend
(
$tid
,
$uid
)
{
return
self
::
call
(
'thread.addThreadRecommend'
,
compact
(
'tid'
,
'uid'
));
}
/**
* 点赞评论
*
* @param $tid
* @param $uid
* @param $postList
* @return mixed
*/
public
static
function
addPostReview
(
$tid
,
$uid
,
$postList
)
{
return
self
::
call
(
'thread.addPostReview'
,
compact
(
'tid'
,
'uid'
,
'postList'
));
}
/**
* 获取帖子评论列表
*
* @param $tid
* @return mixed
*/
public
static
function
getThreadCommentList
(
$tid
)
{
return
self
::
call
(
'thread.getThreadCommentList'
,
compact
(
'tid'
));
}
}
\ No newline at end of file
src/ucenter/Task.php
0 → 100644
View file @
feb658ba
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2019-08-12
* Time: 16:59
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
Task
extends
Client
{
const
IDENFITY_AUTH
=
1
;
//身份认证
const
SHOP_DECORATION
=
2
;
//店铺装修
const
SHARE_SHOP
=
3
;
//分享店铺
const
SHARE_PRODUCTION
=
4
;
//分享商品
/**
* @param $taskId 1:身份认证 2:店铺装修 3:分享店铺 4:分享商品
* @param $uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
trigger
(
$taskId
,
$uid
){
return
self
::
call
(
'task.trigger'
,
compact
(
'taskId'
,
'uid'
));
}
}
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