修正取消未支付的订单

This commit is contained in:
2024-04-08 15:38:24 +08:00
parent c918a8a31e
commit b9a22ea667
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -821,7 +821,7 @@ class DetectionService extends BaseService
* @param string|int $cancel_remarks 取消备注
* @return array
*/
public function cancelUnpayDetectionOrder(string|int $order_id, string|int $cancel_reason, string|int $cancel_remarks): array
public function cancelUnpayDetectionOrder(string|int $order_no, string|int $cancel_reason, string|int $cancel_remarks): array
{
$result = array();
$result['status'] = 1;
@@ -829,7 +829,7 @@ class DetectionService extends BaseService
// 获取检测订单数据
$params = array();
$params['order_id'] = $order_id;
$params['detection_no'] = $order_no;
$order_detection = OrderDetection::getOne($params);
if (empty($order_detection)) {
$result['status'] = 0;