Commit 0b34340c by xmy

Merge remote-tracking branch 'origin/test' into test

parents 739d5df3 62ce8f65
......@@ -178,6 +178,11 @@ class User
return $this->getValue('referId');
}
public function getAgentId()
{
return intval($this->getValue('agentId'));
}
public function getScope()
{
return $this->getValue('scope');
......
......@@ -15,7 +15,7 @@ use Swoft\Core\ResultInterface;
/**
* order servcie
*
* @method ResultInterface deferCreateOrder(int $buyerId,int $storeId,int $consigneeId,int $itemId,int $selectedNum,int $orderType,int $activityPrice,string $goodsName,string $goodsImage,string $activityName,int $goodsId,int $goodsPrice,string $message='',int $skuId=0,int $subStoreId=0,int $couponId=0);
* @method ResultInterface deferCreateOrder(int $buyerId,int $storeId,int $consigneeId,int $itemId,int $selectedNum,int $orderType,int $activityPrice,string $goodsName,string $goodsImage,string $activityName,int $goodsId,int $goodsPrice,string $message='',int $skuId=0,int $subStoreId=0,int $couponId=0,int $agentId=0);
* @method ResultInterface deferGetOrderDetailBySubId(int $storeId,int $subOrderId,$ifSelf=true,bool $ifExtend=false)
* @method ResultInterface deferGetOrderDetailByPid(int $storeId,int $pId, $ifSelf=false, $ifExtend=false)
* @method ResultInterface deferGetOrderDetailByMainSn(int $storeId,string $orderSn, $ifSelf=false, $ifExtend=false)
......@@ -54,6 +54,7 @@ interface OrderInterface
* @param integer $skuId
* @param integer $subStoreId
* @param integer $couponId
* @param integer $agentId 代理商Id
* @return mixed
*/
public function createOrder(
......@@ -71,8 +72,9 @@ interface OrderInterface
int $goodsPrice,
string $message = '',
int $skuId=0,
int $subStoreId=0,
int $couponId=0
int $subStoreId=0,
int $couponId=0,
int $agentId=0
);
/**
* 根据子订单ID查询订单详情
......
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