|
|
@@ -157,7 +157,7 @@ class OrderController extends PlatformController
|
|
|
}
|
|
|
//已付款 或 微信中打开支付链接的,不可修改价格
|
|
|
$status = $orderData['actPrice'] != $post['consumeAmount'] ? true : false;
|
|
|
- if($orderData['modPriceStatus'] == 1 && $status){
|
|
|
+ if($orderData['modPrice'] == 0 && $status){
|
|
|
util::failInfo('订单已锁定,不能修改价格');
|
|
|
}else if($orderData['payStatus'] == 1 && $status){
|
|
|
util::failInfo('订单已付款,不能修改价格');
|
|
|
@@ -219,11 +219,11 @@ class OrderController extends PlatformController
|
|
|
$actPrice = isset($get['actPrice']) ? $get['actPrice'] : 10000;
|
|
|
$id = isset($get['id']) ? $get['id'] : 0;
|
|
|
$order = xhOrderService::getById($id, $this->merchantId);
|
|
|
- /*if($order['merchantId'] != $this->merchantId){
|
|
|
- util::failInfo('非法访问');
|
|
|
- }*/
|
|
|
- if($order['modPriceStatus'] == 1){
|
|
|
- util::failInfo('订单已锁定,不能修改价格');
|
|
|
+ if($order['merchantId'] != $this->merchantId){
|
|
|
+ util::fail('您没有权限操作此订单');
|
|
|
+ }
|
|
|
+ if($order['modPrice'] == 0){
|
|
|
+ util::fail('订单已锁定,不能修改价格');
|
|
|
}
|
|
|
$prePrice = $order['actPrice'];
|
|
|
xhOrderService::updateById($id, ['actPrice' => $actPrice]);
|