qifengquan vor 1 Jahr
Ursprung
Commit
33236566e1
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      application/api/controller/User.php

+ 4 - 0
application/api/controller/User.php

@@ -32,6 +32,10 @@ class User extends Api
      */
     public function index()
     {
+        $this->auth->getUser()->head_img = config('site.head_img');
+        $this->auth->getUser()->gw_name = config('site.gw_name');
+        $this->auth->getUser()->dingding = config('site.dingding');
+        $this->auth->getUser()->qywx = config('site.qywx');
         $this->success('', ['welcome' => $this->auth->getUser()]);
     }