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'],