库存扣除

This commit is contained in:
devil_gong
2018-11-12 16:57:30 +08:00
parent 70a4a67f79
commit c549dafef5
9 changed files with 236 additions and 71 deletions

View File

@ -318,6 +318,30 @@ class OrderController extends CommonController
$this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']);
}
/**
* [Confirm 订单确认]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-15T11:03:30+0800
*/
public function Confirm()
{
// 是否ajax请求
if(!IS_AJAX)
{
$this->error(L('common_unauthorized_access'));
}
// 订单确认
$params = $_POST;
$params['user_id'] = $params['value'];
$params['creator'] = $this->admin['id'];
$params['creator_name'] = $this->admin['username'];
$ret = OrderService::OrderConfirm($params);
$this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']);
}
/**
* 订单支付
* @author Devil