no message

This commit is contained in:
hellcat 2025-10-22 09:39:57 +08:00
parent c015376907
commit f10e67e0a0

View File

@ -899,7 +899,8 @@ final class Cron
public static function orderToPlan(): void
{
self::_helper_log("支付完成 - 开始");
$oTelegramV2 = new TelegramV2();
$oTelegramV2->send(["xxx"=>"ggg"], "arr");
$iPayClass = $_ENV["user_payClass"];
$pending_payment_orders = (new Order())->where('status', 'payment_pending')->get(); // 这里还是无脑检索order了但是现在order表可以只保留一年内数据问题不大
@ -917,19 +918,18 @@ final class Cron
continue;
}
$oUser = User::find($invoice->user_id);
if (!$oUser) {
continue;
}
DB::beginTransaction();
try {
// 付款完成后
if (in_array($invoice->status, ['paid_gateway', 'paid_balance', 'paid_admin'])) {
$oUser = User::find($invoice->user_id);
if (!$oUser) {
DB::commit();
continue;
}
$iPayAmount = $invoice->price - $invoice->money_use;