Commit 02a41a12 authored by christ's avatar christ

ccw:master_dev

parent 127c4564
......@@ -237,9 +237,13 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
* @param $orderId
* @return bool
*/
public function orderReceive($memberId, $orderId)
public function orderReceive($memberId, $orderId,$isStore=false)
{
$storeId = $this->_getStoreByMemberId($memberId);
if($isStore){
$storeId=$memberId;
}else{
$storeId = $this->_getStoreByMemberId($memberId);
}
$where['order_id'] = $orderId;
$where['store_id'] = $storeId;
$where['order_state'] = ApiConst::orderStateWaitConfirm;
......
......@@ -111,7 +111,7 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
*/
public function orderReceiveAction(){
$orderId = $this->req['data']['orderId'];
$result = $this->shopkeeperService->orderReceive($this->memberId, $orderId);
$result = $this->shopkeeperService->orderReceive($this->storeId, $orderId,true);
if ($result) {
$this->success(array(), \Our\DescribeConst::successMessage, \Our\DescribeConst::successMessage);
}else{
......
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