12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
- namespace App\Http\Controllers\Api\V1;
- use Illuminate\Http\Request;
- use App\Facades\ThirdH5ChatFacade;
- use App\Facades\UserFacade;
- class ThirdH5ChatController extends BaseController
- {
- /**
- * Display a listing of the resource.
- *
- * @return \Illuminate\Http\Response
- */
- public function index()
- {
- //
- }
- /**
- * Store a newly created resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @return \Illuminate\Http\Response
- */
- public function store(Request $request)
- {
- $conditions = [
- 'id' => $this->auth()
- ];
- $fields = ['*'];
-
- $user = UserFacade::findBy($conditions, $fields);
-
- $user = $user->getData()->data;
- $uid = $user->third_up_openid;
- $nickname = $user->third_up_nickname?$user->third_up_nickname:$user->wx_nickname;
- $headUrl = $user->wx_headimgurl;
- return ThirdH5ChatFacade::getChatUrl($uid, $nickname, $headUrl);
- }
- /**
- * Display the specified resource.
- *
- * @param int $id
- * @return \Illuminate\Http\Response
- */
- public function show($id)
- {
- //
- }
- /**
- * Update the specified resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @param int $id
- * @return \Illuminate\Http\Response
- */
- public function update(Request $request, $id)
- {
- //
- }
- /**
- * Remove the specified resource from storage.
- *
- * @param int $id
- * @return \Illuminate\Http\Response
- */
- public function destroy($id)
- {
- //
- }
- }
|