Commit 2a3ffcde by 王召彬

Merge branch 'test' of http://git.dev.2b3.cn/tencent/services into test

parents 85c77621 97cac219
......@@ -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获取配置, 优先使用此方法读取配置
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment