|
|
@@ -634,6 +634,22 @@ class PurchaseController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //更新最后下单时间
|
|
|
+ $customId = $order->customId ?? 0;
|
|
|
+ $custom = CustomClass::getById($customId, true);
|
|
|
+ $date = date("Y-m-d H:i:s");
|
|
|
+ if (!empty($custom)) {
|
|
|
+ $custom->recentExpend = $date;
|
|
|
+ $custom->save();
|
|
|
+ }
|
|
|
+ $ghsId = $order->ghsId ?? 0;
|
|
|
+ $ghs = GhsClass::getById($ghsId, true);
|
|
|
+ if (!empty($ghs)) {
|
|
|
+ $ghs->recentExpend = $date;
|
|
|
+ $ghs->save();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
} catch (Exception $e) {
|
|
|
$transaction->rollBack();
|