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
e1feb48d
Commit
e1feb48d
authored
Nov 07, 2018
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
098eaaa3
2c3b7e05
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
1 deletions
+97
-1
UPGRADE.md
+7
-0
src/Common/Entity/Split.php
+1
-1
src/Notice/Lib/CaptchaInterface.php
+44
-0
src/Order/Lib/SellerOrderInterface.php
+9
-0
src/Store/Lib/VisitorCountInterface.php
+36
-0
No files found.
UPGRADE.md
View file @
e1feb48d
# 1.0.9
-
添加访客统计的RPC接口
# 1.0.8
-
分表逻辑判断处理
# 1.0.7
-
增加发送验证码服务
# 1.0.6
-
新增VIP服务 获取卖家下级VIP数量
...
...
src/Common/Entity/Split.php
View file @
e1feb48d
...
...
@@ -66,7 +66,7 @@ class Split
$storeId
=
$data
[
'userInfo'
][
'storeId'
];
if
(
$storeId
===
null
)
{
if
(
empty
(
$storeId
)
)
{
throw
new
CommonException
([
"msg"
=>
"参数异常,获取店铺信息失败。"
]);
}
return
$storeId
%
$splitNum
;
...
...
src/Notice/Lib/CaptchaInterface.php
0 → 100644
View file @
e1feb48d
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/11/5
* Time: 16:26
*/
namespace
Hdll\Services\Notice\Lib
;
use
Swoft\Core\ResultInterface
;
/**
* @method ResultInterface deferSendCode(string $phone, int $template, int $storeId, $validity=5,$num = 4, $sendTime=[]);
* @method ResultInterface deferCheckCode(int $code, string $phone, int $template)
*
* Interface CaptchaInterface
* @package Hdll\Services\Notice\Lib
*/
interface
CaptchaInterface
{
/**
* @param string $phone 手机号
* @param int $template 模板id
* @param int $storeId 发送短信的id
* @param int $validity 过期时间单位:分钟
* @param int $num 验证码位数
* @param array $sendTime 定时发送时间即时发送为[],定时发送格式为:[timestamp]
* @return int 验证码code
*
*/
public
function
sendCode
(
string
$phone
,
int
$template
,
int
$storeId
,
$validity
=
5
,
$num
=
4
,
$sendTime
=
[]);
/**
* 验证验证码
* @param int $code 验证码
* @param string $phone 手机号
* @param int $template 模板id
* @return bool
*/
public
function
checkCode
(
int
$code
,
string
$phone
,
int
$template
);
}
\ No newline at end of file
src/Order/Lib/SellerOrderInterface.php
View file @
e1feb48d
...
...
@@ -7,6 +7,15 @@
*/
namespace
Hdll\Services\Order\Lib
;
use
Swoft\Core\ResultInterface
;
/**
* @method ResultInterface deferSellerCreateOrder(int $sellerId,int $storeId,int $itemId,int $selectedNum,int $orderType,float $total,float $goodsPrice,string $goodsName)
* @method ResultInterface deferGetOrderInfoBySn(int $storeId, string $orderSn)
* @method ResultInterface deferUpdateInfoById(int $storeId,int $orderId, array $updateInfo)
* Interface SellerOrderInterface
* @package Hdll\Services\Order\Lib
*/
interface
SellerOrderInterface
{
public
function
sellerCreateOrder
(
...
...
src/Store/Lib/VisitorCountInterface.php
0 → 100644
View file @
e1feb48d
<?php
/**
* This file is part of Swoft.
*
* @link https://swoft.org
* @document https://doc.swoft.org
* @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace
Hdll\Services\Store\Lib
;
use
Swoft\Core\ResultInterface
;
/**
* The interface of visitor-count service
*
* @method ResultInterface deferUpdateVisitorData(int $storeId, int $visitorId, array $data = [])
*/
interface
VisitorCountInterface
{
/**
* 根据店铺id和访客id更新一条访客记录
* 如果已有记录,会替换更新,如果没有,会新建一条记录
*
* @param int $storeId
* @param int $visitorId
* @param array $data 此参数可选,不传表示只更新访问时间
* nickname 昵称
* headImgUrl 头像
* @return bool
*/
public
function
updateVisitorData
(
int
$storeId
,
int
$visitorId
,
array
$data
=
[]);
}
\ 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