cqp il y a 2 mois
Parent
commit
1bfba82ae0
2 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 2 1
      app/Http/Controllers/Api/TestController.php
  2. 3 2
      config/wechatOfficial.php

+ 2 - 1
app/Http/Controllers/Api/TestController.php

@@ -25,7 +25,8 @@ class TestController extends BaseController
 
     }
 
-    public function aa(){
+    public function aa(Request $request){
+        file_put_contents('22.txt',json_encode($request->all()));return;
         $send_data[] = [
             'employee_id' => 1,
             'type' => 2,

+ 3 - 2
config/wechatOfficial.php

@@ -7,7 +7,8 @@ return [
    "tokenKeyName" => "tongyuekeji",
    "getOpenIdUrl" => "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code",
    "setWebHookUrl" => "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect",
-   "redirectUrl" => "https://tyapi.qingyaokeji.com/wxapi/getUnionid?uri=%s&param=%s",
-   "redirectFrontEndUrl" => "https://ty.qingyaokeji.com/#/wxGet?uri=%s&openid=%s&param=%s",
+   "redirectUrl" => "https://tykjapi.qingyaokeji.com/wxapi/getUnionid?uri=%s&param=%s",
+//   "redirectFrontEndUrl" => "https://tykj.qingyaokeji.com/#/wxGet?uri=%s&openid=%s&param=%s",
+   "redirectFrontEndUrl" => "https://tykjapi.qingyaokeji.com/api/test",
 ];