seven 1 ヶ月 前
コミット
30c228cff3
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/Services/BaseService.php

+ 2 - 2
app/Services/BaseService.php

@@ -182,8 +182,8 @@ class BaseService
     public static function getOperateButton()
     {
         $username = config('services.telegram.username');
-        $serviceAccount = Config::where('field', 'service_account')->first()->val;
-        $officialChannel = Config::where('field', 'official_channel')->first()->val;
+        $serviceAccount = Config::where('field', 'service_account')->first()->val??'';
+        $officialChannel = Config::where('field', 'official_channel')->first()->val??'';
         $inlineButton = [];
         $inlineButton[] = [
             ['text' => "查看余额", 'callback_data' => 'balanceAlert'],