Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
148ecce8
Commit
148ecce8
authored
Apr 16, 2019
by
zhangsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流量统计中添加访客统计
parent
0242d795
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
80 deletions
+20
-80
UPGRADE.md
+3
-0
src/Common/Pool/Config/FlowCountPoolConfig.php
+3
-3
src/FlowCount/Lib/VisitorInterface.php
+14
-77
No files found.
UPGRADE.md
View file @
148ecce8
#1.0.82
-
添加流量统计-访客统计
# 1.0.81
# 1.0.81
-
添加订单服务店主核销枚举
-
添加订单服务店主核销枚举
...
...
src/Common/Pool/Config/FlowCountPoolConfig.php
View file @
148ecce8
...
@@ -18,16 +18,16 @@ use Swoft\Pool\PoolProperties;
...
@@ -18,16 +18,16 @@ use Swoft\Pool\PoolProperties;
*
*
* @Bean()
* @Bean()
*/
*/
class
Seller
PoolConfig
extends
PoolProperties
class
FlowCount
PoolConfig
extends
PoolProperties
{
{
public
function
__construct
()
public
function
__construct
()
{
{
// 区别本地和线上的RPC服务地址
// 区别本地和线上的RPC服务地址
$this
->
uri
=
explode
(
','
,
env
(
'RPC_
SELLER_URI'
,
'seller
:8099'
));
$this
->
uri
=
explode
(
','
,
env
(
'RPC_
FLOWCOUNT_URI'
,
'flowcount
:8099'
));
}
}
protected
$name
=
'
seller
'
;
protected
$name
=
'
flowcount
'
;
/**
/**
* Minimum active number of connections
* Minimum active number of connections
...
...
src/FlowCount/Lib/VisitorInterface.php
View file @
148ecce8
...
@@ -11,86 +11,24 @@ namespace Hdll\Services\Seller\Lib;
...
@@ -11,86 +11,24 @@ namespace Hdll\Services\Seller\Lib;
use
Swoft\Core\ResultInterface
;
use
Swoft\Core\ResultInterface
;
/**
/**
* @method ResultInterface deferSave($referId, $unionId, $openId, $nickName, $headImgUrl)
* @method ResultInterface deferAdd(array $data)
* @method ResultInterface deferGet($id, $fields = ['*'])
* Interface VisitorInterface
* @method ResultInterface deferGetByUnionId($unionId, $fields = ['*'])
* @method ResultInterface deferGetByStoreId($storeId, $fields = ['*'])
* @method ResultInterface deferUpdate($id, $data)
* @method ResultInterface deferCountDistributionNum($sellerId)
* @method ResultInterface deferGetByIds(array $ids, $fields = ['*'])
* @method ResultInterface deferGetAndUpdateOpenId($unionId, $openId)
* @method ResultInterface deferSaveRelation($sellerId)
* @method ResultInterface deferUpdateRelationVip($sellerId, $isVip)
* @method ResultInterface deferCountVip($sellerId, $isVip)
* Interface SellerInterface
* @package App\Lib
* @package App\Lib
*/
*/
interface
VisitorInterface
interface
VisitorInterface
{
{
/**
/**
* @param $referId
* 添加访客
* @param $unionId
* @param array $data
* @param $openI
d
* int $data['storeId']=> 商家i
d
* @param $nickName
* int $data['visitorId']=>访客id
* @param $headImgUrl
* int $data['date']=>访问时间
* @param string $realName
* int $data['appType']=>访问的app类型 默认传值:1前台小程序,2后台小程序
* @param string $phoneNumber
* string $data['nickName']=>'访客昵称'
* @return mixed
* string $data['headImgUrl']=>'访客头像URL'
* @author Administrator
* @return mixed
*/
*/
public
function
save
(
$referId
,
$unionId
,
$openId
,
$nickName
,
$headImgUrl
);
public
function
add
(
array
$data
);
/**
* @param $id
* @param array $fields
* @return mixed
* @author Administrator
*/
public
function
get
(
$id
,
$fields
=
[
'*'
]);
/**
* @param $unionId
* @param array $fields
* @return mixed
* @author Administrator
*/
public
function
getByUnionId
(
$unionId
,
$fields
=
[
'*'
]);
/**
* @param $condition
* @param $data
* $data['referId']=>'来源ID'
* $data['unionId']=>'unionId'
* $data['openId']=>'openId'
* $data['nickName']=>'昵称'
* $data['headImgUrl']=>'头像URL'
* $data['realName']=>'真实姓名'
* $data['phoneNumber']=>'手机号'
* @return mixed
* @author Administrator
*/
public
function
update
(
$condition
,
$data
);
/**
* @param $storeId
* @param array $fields
* @return mixed
* @author Administrator
*/
public
function
getByStoreId
(
$storeId
,
$fields
=
[
'*'
]);
public
function
countDistributionNum
(
$sellerId
);
public
function
getByIds
(
array
$ids
,
$fields
=
[
'*'
]);
public
function
getAndUpdateOpenId
(
$unionId
,
$openId
);
public
function
saveRelation
(
$sellerId
);
public
function
updateRelationVip
(
$sellerId
,
$isVip
);
public
function
countVip
(
$sellerId
);
}
}
\ 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