diff --git a/src/Services/Cron.php b/src/Services/Cron.php index e0340549f..ac3f47bbc 100755 --- a/src/Services/Cron.php +++ b/src/Services/Cron.php @@ -899,8 +899,7 @@ 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表可以只保留一年内数据,问题不大 @@ -1017,7 +1016,7 @@ final class Cron DB::commit(); - } catch (\Exception $e) { + } catch (\Throwable $e) { DB::rollBack(); @@ -1069,7 +1068,7 @@ final class Cron DB::commit(); - } catch (\Exception $e) { + } catch (\Throwable $e) { DB::rollBack(); @@ -1173,7 +1172,7 @@ final class Cron self::_helper_log("用户".$oUser->id."激活完成"); - } catch (\Exception $e) { + } catch (\Throwable $e) { DB::rollBack(); @@ -1291,7 +1290,7 @@ final class Cron // continue; - } catch (\Exception $e) { + } catch (\Throwable $e) { DB::rollBack(); @@ -1380,7 +1379,7 @@ final class Cron DB::commit(); - } catch (\Exception $e) { + } catch (\Throwable $e) { DB::rollBack(); @@ -1482,7 +1481,7 @@ final class Cron // $oTelegramV2->send(json_encode($aTgMsg)); // } // -// throw new \Exception($sMsg); +// throw new \Throwable($sMsg); // } private static function _plan_to_user(&$oUser, $aProductContent)