|
@@ -72,6 +72,13 @@ class AuthController extends Controller
|
|
|
|
|
|
public function notifyAccount(Request $request)
|
|
public function notifyAccount(Request $request)
|
|
{
|
|
{
|
|
|
|
+ $config = [
|
|
|
|
+ 'app_id' => 'wxbce144ca3da7aa23',
|
|
|
|
+ 'secret' => '4d97eba675deeea187e1ebc32c1399da',
|
|
|
|
+ 'response_type' => 'array',
|
|
|
|
+ ];
|
|
|
|
+
|
|
|
|
+ $app = Factory::officialAccount($config);
|
|
\Log::info(111);
|
|
\Log::info(111);
|
|
//
|
|
//
|
|
//如果有$echoStr说明是对接
|
|
//如果有$echoStr说明是对接
|
|
@@ -115,6 +122,8 @@ class AuthController extends Controller
|
|
</xml>";
|
|
</xml>";
|
|
$msgType = "text";
|
|
$msgType = "text";
|
|
$contentStr = "openid是:" . $fromUsername;
|
|
$contentStr = "openid是:" . $fromUsername;
|
|
|
|
+ $user = $app->user->get($fromUsername);
|
|
|
|
+ \Log::info($user);
|
|
$resultStr = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr);
|
|
$resultStr = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr);
|
|
echo $resultStr;
|
|
echo $resultStr;
|
|
exit;
|
|
exit;
|