本文整理匯總了PHP中Wechat::getAppId方法的典型用法代碼示例。如果您正苦於以下問題:PHP Wechat::getAppId方法的具體用法?PHP Wechat::getAppId怎麽用?PHP Wechat::getAppId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Wechat
的用法示例。
在下文中一共展示了Wechat::getAppId方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: close
public function close(Request $request)
{
$access_token = \Wechat::getWebAuthAccessToken();
$timestamp = Carbon::now()->getTimestamp();
$addr_sign = ['accesstoken=' . $access_token, 'appid=' . \Wechat::getAppId(), 'noncestr=123456', 'timestamp=' . $timestamp, 'url=' . $request->fullUrl()];
sort($addr_sign);
$addr_sign = implode('&', $addr_sign);
return view('education.close')->with(['original_url' => \Session::get('original_url', null), 'appId' => env('WX_APPID'), 'timestamp' => $timestamp, 'addrSign' => sha1($addr_sign), 'url' => $request->fullUrl(), 'js' => \Wechat::getJssdkConfig(['closeWindow', 'checkJsApi', 'editAddress', 'chooseWXPay', 'getLatestAddress', 'openCard', 'getLocation'])]);
}
示例2: test
public function test(Request $request)
{
$access_token = \Wechat::getWebAuthAccessToken();
$timestamp = Carbon::now()->getTimestamp();
$addr_sign = ['accesstoken=' . $access_token, 'appid=' . \Wechat::getAppId(), 'noncestr=123456', 'timestamp=' . $timestamp, 'url=' . $request->fullUrl()];
sort($addr_sign);
$addr_sign = implode('&', $addr_sign);
return view('shop.test')->with(['appId' => env('WX_APPID'), 'timestamp' => $timestamp, 'addrSign' => sha1($addr_sign), 'url' => $request->fullUrl(), 'js' => \Wechat::getJssdkConfig(['checkJsApi', 'editAddress', 'openAddress', 'chooseWXPay', 'getLatestAddress', 'openCard', 'getLocation'])]);
// return view('backend.article.customer_index')->with([
// 'items' => Article::paginate(10)
// ]);
}