소스 검색

同跃科技

cqp 2 달 전
부모
커밋
79d976b741
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/Service/Weixin/WeixinService.php

+ 3 - 0
app/Service/Weixin/WeixinService.php

@@ -58,6 +58,9 @@ class WeixinService extends Service
             $param = isset($data['param']) ? $data['param'] : '';
             $openid = $openid['openid'];
 
+            $data['open_id'] = $openid;
+            file_put_contents('22.txt',json_encode($data));
+
             //重定向前端地址
             $redirectFrontEndUrl = sprintf($config['redirectFrontEndUrl'],$uri,$openid,$param);
             header('Location:'.$redirectFrontEndUrl);