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
307bb7c0
Commit
307bb7c0
authored
Nov 12, 2019
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test' into test
parents
819dfa66
1effa9f9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
6 deletions
+32
-6
UPGRADE_2.x.md
+3
-0
src/Common/Config/CfgCenter.php
+1
-1
src/Craftsman/Lib/CraftsmanInterface.php
+3
-2
src/Order/Enum/OrderQueueEnum.php
+4
-3
src/Store/Lib/StoreInterface.php
+21
-0
No files found.
UPGRADE_2.x.md
View file @
307bb7c0
# 2.0.35
-
增加rpc接口
# 2.0.34
-
会员卡接口
...
...
src/Common/Config/CfgCenter.php
View file @
307bb7c0
...
...
@@ -69,7 +69,7 @@ class CfgCenter
}
else
{
$val
=
$res
[
1
];
}
$redis
->
set
(
"CONFIG_CENTER:"
.
$res
[
0
],
$val
);
$redis
->
set
(
"CONFIG_CENTER:"
.
$res
[
0
],
$val
,
3600
);
return
$res
[
1
];
}
}
...
...
src/Craftsman/Lib/CraftsmanInterface.php
View file @
307bb7c0
...
...
@@ -17,7 +17,7 @@ use Swoft\Core\ResultInterface;
* The interface of craftsman service
*
* @method ResultInterface deferGetCraftsmenList(int $storeId, int $subStoreId = 0, int $itemId = 0)
* @method ResultInterface deferGetCraftsmenByUnionId(string $unionId)
* @method ResultInterface deferGetCraftsmenByUnionId(string $unionId
, int $isSeller=0
)
* @method ResultInterface defercreateCraftsman($storeId, array $params)
* @method ResultInterface deferGetCraftsmenById(int $storeId, int $cmanId)
* @method ResultInterface deferGetCraftsmenByIds(int $storeId, array $cmanIds)
...
...
@@ -72,9 +72,10 @@ interface CraftsmanInterface
* 根据unionId获取店员信息
*
* @param string $unionId
* @param int $isSeller 是否店主 1-是 ,0-否
* @return array
*/
public
function
getCraftsmenByUnionId
(
string
$unionId
);
public
function
getCraftsmenByUnionId
(
string
$unionId
,
int
$isSeller
=
0
);
/**
...
...
src/Order/Enum/OrderQueueEnum.php
View file @
307bb7c0
...
...
@@ -11,10 +11,10 @@ class OrderQueueEnum
{
const
TOPIC
=
"order"
;
const
UPDATE_INFO
=
'update-info'
;
const
SELLER_ORDER_UPDATE_INFO
=
'updateInfoById'
;
const
UPDATE_INFO
=
'update-info'
;
//买家订单更改
const
SELLER_ORDER_UPDATE_INFO
=
'updateInfoById'
;
//卖家订单更改
const
ORDER_DELIVERY
=
'orderDelivery'
;
//实物订单发货
}
\ No newline at end of file
src/Store/Lib/StoreInterface.php
View file @
307bb7c0
...
...
@@ -22,6 +22,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferGetStoreBySellerId(int $sellerId)
* @method ResultInterface deferGetListBySellerIds(array $sellerIds, array $fields = [])
* @method ResultInterface deferGetListByStoreIds(array $storeIds, array $fields = [])
* @method ResultInterface deferGetListByLastMonth()
* @method ResultInterface deferGetStoreByMobile(int $mobile, array $fields = [])
* @method ResultInterface deferUpdateStore(int $storeId, array $data)
* @method ResultInterface deferAddVipTime(int $storeId, int $days)
...
...
@@ -92,6 +93,26 @@ interface StoreInterface
public
function
getListByStoreIds
(
array
$storeIds
,
array
$fields
=
[]);
/**
* 获取最近一个月登录的店铺列表
*
* @return array
* array(14) {
* [0]=>
* array(4) {
* ["id"]=>
* int(11)
* ["sellerId"]=>
* int(8)
* ["storeName"]=>
* string(12) "平凡小店"
* ["unionId"]=>
* string(28) "ohQUyuBp5CWZjyPJEsG4znbFQIZI"
* }
* }
*/
public
function
getListByLastMonth
();
/**
* 根据注册手机号获取店铺信息
*
* @param integer $mobile
...
...
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