|
@@ -3,6 +3,7 @@
|
|
namespace App\Http\Controllers\V1;
|
|
namespace App\Http\Controllers\V1;
|
|
|
|
|
|
use App\Auth;
|
|
use App\Auth;
|
|
|
|
+use App\libs\google\GoogleOauth;
|
|
use App\libs\helpers\Curl;
|
|
use App\libs\helpers\Curl;
|
|
use App\libs\helpers\LogHelper;
|
|
use App\libs\helpers\LogHelper;
|
|
use App\libs\wechat\auth\WeChat;
|
|
use App\libs\wechat\auth\WeChat;
|
|
@@ -24,10 +25,11 @@ class IndexController extends Controller
|
|
*/
|
|
*/
|
|
public function index(){
|
|
public function index(){
|
|
try {
|
|
try {
|
|
- $weChat = WeChat::General();
|
|
|
|
- $userInfo = $weChat->auth('snsapi_userinfo');
|
|
|
|
- $userInfo = $weChat->userDetailInfo($userInfo['openid']);
|
|
|
|
- var_dump($userInfo);
|
|
|
|
|
|
+ $google = GoogleOauth::appAuth();
|
|
|
|
+// $weChat = WeChat::General();
|
|
|
|
+// $userInfo = $weChat->auth('snsapi_userinfo');
|
|
|
|
+// $userInfo = $weChat->userDetailInfo($userInfo['openid']);
|
|
|
|
+ var_dump($google);
|
|
return Response::success();
|
|
return Response::success();
|
|
}catch (\Exception $exception){
|
|
}catch (\Exception $exception){
|
|
LogHelper::exceptionLog($exception,$this->code);
|
|
LogHelper::exceptionLog($exception,$this->code);
|