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
7111a42c
Commit
7111a42c
authored
Jun 20, 2019
by
王洁
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.dev.2b3.cn/tencent/services
parents
02a87567
fa8603b4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
1 deletions
+44
-1
UPGRADE_2.x.md
+12
-0
src/Common/Pool/Config/Wx3rdPoolConfig.php
+1
-1
src/Goods/Lib/GoodsInterface.php
+10
-0
src/Wx3rd/Lib/EntrustedInterface.php
+21
-0
No files found.
UPGRADE_2.x.md
View file @
7111a42c
# 2.0.10
-
根据商户平台id获取对应的小程序托管配置
# 2.0.9
-
修改wx3rd服务常量名错误
# 2.0.8
-
添加获取托管小程序支付证书的接口
# 2.0.7
-
商品后续服务
# 2.0.6
-
砍价、限时购 加 消息队列 upOrderStatus
src/Common/Pool/Config/Wx3rdPoolConfig.php
View file @
7111a42c
...
...
@@ -23,7 +23,7 @@ class Wx3rdPoolConfig extends PoolProperties
public
function
__construct
()
{
// 区别本地和线上的RPC服务地址
$this
->
uri
=
explode
(
','
,
env
(
'RPC_
STORE
_URI'
,
'wx3rd:8099'
));
$this
->
uri
=
explode
(
','
,
env
(
'RPC_
WX3RD
_URI'
,
'wx3rd:8099'
));
}
protected
$name
=
'wx3rd'
;
...
...
src/Goods/Lib/GoodsInterface.php
View file @
7111a42c
...
...
@@ -24,6 +24,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferAfterServiceTmp($storeId)
* @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferGetTopThreeSales($storeId)
* @method ResultInterface deferGetReturnVisitByGoodsIds($storeId, $goodsIds)
* Interface GoodsInterface
* @package Hdll\Services\Goods\Lib
*/
...
...
@@ -165,4 +166,13 @@ interface GoodsInterface
* @author work
*/
public
function
getTopThreeSales
(
$storeId
);
/**
* 批量获取后续服务 goodIds
* @param $storeId
* @param $goodsIds
* @return mixed
* @author work
*/
public
function
getReturnVisitByGoodsIds
(
$storeId
,
$goodsIds
);
}
src/Wx3rd/Lib/EntrustedInterface.php
View file @
7111a42c
...
...
@@ -16,6 +16,8 @@ use Swoft\Core\ResultInterface;
* The interface of store service
*
* @method ResultInterface deferGetEntrustedData(int $storeId, array $fields = [])
* @method ResultInterface deferGetEntrustedDataByMchid(int $mchid, array $fields = [])
* @method ResultInterface deferGetWxpayCerts(int $storeId, $mchid)
*/
interface
EntrustedInterface
{
...
...
@@ -28,4 +30,22 @@ interface EntrustedInterface
*/
public
function
getEntrustedData
(
int
$storeId
,
array
$fields
=
[]);
/**
* 根据店铺id和商户平台id获取对应的支付证书
*
* @param int $storeId
* @param string $mchid
* @return array
*/
public
function
getWxpayCerts
(
int
$storeId
,
$mchid
);
/**
* 根据商户平台id获取对应的小程序托管配置
*
* @param int $storeId
* @param array $fields 字段列表
* @return bool
*/
public
function
getEntrustedDataByMchid
(
int
$mchid
,
array
$fields
=
[]);
}
\ 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