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