|
|
@@ -323,13 +323,9 @@ class PurchaseService extends BaseService
|
|
|
$book = $info->book ?? 0;
|
|
|
$orderSn = $info->orderSn ?? '';
|
|
|
$current = date("Y-m-d H:i:s");
|
|
|
- if ($deadline <= $current) {
|
|
|
- noticeUtil::push('重点注意,采购单:' . $orderSn . ',客户付钱了但订单已经过期了。过期时间:' . $deadline . ' 当前时间:' . $current, '15280215347');
|
|
|
- sms::send('15280215347,' . $orderSn, '重点注意,采购单:{$var},客户付钱了但订单取消状态');
|
|
|
- util::fail('订单已失效..');
|
|
|
- }
|
|
|
+
|
|
|
if (isset($info->status) == false) {
|
|
|
- noticeUtil::push('重点注意,采购单:' . $orderSn . ',客户付钱了但没有找到订单状态', '15280215347');
|
|
|
+ noticeUtil::push('重点注意,采购单:' . $orderSn . ',客户付钱了但没有找到订单的状态', '15280215347');
|
|
|
util::fail('没有找到订单状态');
|
|
|
} else {
|
|
|
if ($info->status == PurchaseClass::STATUS_CANCEL) {
|
|
|
@@ -339,6 +335,10 @@ class PurchaseService extends BaseService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if ($deadline <= $current) {
|
|
|
+ util::fail('订单已过期了哦');
|
|
|
+ }
|
|
|
+
|
|
|
//零售采购单状态变化
|
|
|
$info->payWay = $payWay;
|
|
|
$info->status = $book == 1 ? PurchaseClass::STATUS_UN_SEND : PurchaseClass::STATUS_COMPLETE;
|