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
2a3ffcde
Commit
2a3ffcde
authored
Jun 29, 2020
by
王召彬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
http://git.dev.2b3.cn/tencent/services
into test
parents
85c77621
97cac219
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
src/Common/Config/CfgCenter.php
+1
-0
src/Logistics/Lib/LogisticsInterface.php
+44
-0
No files found.
src/Common/Config/CfgCenter.php
View file @
2a3ffcde
...
...
@@ -30,6 +30,7 @@ class CfgCenter
const
MP_OEMADM
=
'mp_oemadm'
;
// OEM机构管理员公众号后台,使用云脉科技公众号
const
TRAFFIC_BACKEND_WEAPP
=
'traffic_backend_weapp'
;
//流量平台业务员端小程序
const
TRAFFIC_FRONTEND_WEAPP
=
'traffic_frontend_weapp'
;
//流量平台买家端小程序
const
CATERING_WEAPP
=
'catering_weapp'
;
//餐饮小程序
/**
* 根据用户token获取配置, 优先使用此方法读取配置
...
...
src/Logistics/Lib/LogisticsInterface.php
View file @
2a3ffcde
...
...
@@ -2,6 +2,8 @@
namespace
Hdll\Services\Logistics\Lib
;
use
App\Exception\BaseException
;
use
App\Exception\RpcException
;
use
Swoft\Core\ResultInterface
;
/**
...
...
@@ -34,4 +36,45 @@ interface LogisticsInterface
* @return mixed
*/
public
function
getReceiver
(
$id
,
$storeId
);
/**
* 获取即时配送收货人地址
* @param $id
* @param $storeId
* @return array
*/
public
function
getImReceiver
(
$id
,
$storeId
);
/**
* 预下单
* @param $storeId
* @param $buyerId
* @param array $receiver 收货人信息
* @param $orderSn 订单号
* @param $items 商品信息
* [
* ['name'=>'商品名称','image'=>'shang_pin_tu_pian'],
* ['name'=>'商品名称','image'=>'shang_pin_tu_pian'],
* ]
* @param $price 商品总价
* @param $poiSeq 流水号
* @param $deliveryCode 配送服务代码 不同配送公司自定义, 顺丰和达达不填
* @return mixed
* @throws RpcException
*/
public
function
preOrder
(
$storeId
,
$buyerId
,
array
$receiver
,
$orderSn
,
$items
,
$price
,
$poiSeq
,
$deliveryCode
=
null
);
/**
* 下单
* @param $storeId
* @param $buyerId
* @param array $receiver 收货人信息
* @param $orderSn 订单号
* @param null $deliveryToken 预下单接口返回的参数,配送公司可保证在一段时间内运费不变
* @param $deliveryCode 配送服务代码 不同配送公司自定义, 顺丰和达达不填
* @return mixed
* @throws RpcException
*/
public
function
order
(
$storeId
,
$buyerId
,
array
$receiver
,
$orderSn
,
$deliveryToken
=
null
,
$deliveryCode
=
null
);
}
\ 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