當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Wechat::getJssdkConfig方法代碼示例

本文整理匯總了PHP中Wechat::getJssdkConfig方法的典型用法代碼示例。如果您正苦於以下問題:PHP Wechat::getJssdkConfig方法的具體用法?PHP Wechat::getJssdkConfig怎麽用?PHP Wechat::getJssdkConfig使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Wechat的用法示例。


在下文中一共展示了Wechat::getJssdkConfig方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: create

 public function create()
 {
     $customer = \Helper::getCustomer();
     if ($customer->is_registered) {
         return view('register.registered')->with(['js' => \Wechat::getJssdkConfig(['closeWindow'])]);
     }
     return view('register.create');
 }
開發者ID:whplay,項目名稱:ohmate-shop,代碼行數:8,代碼來源:RegisterController.php

示例2: 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'])]);
 }
開發者ID:whplay,項目名稱:ohmate-shop,代碼行數:9,代碼來源:RedirectController.php

示例3: 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)
     //        ]);
 }
開發者ID:whplay,項目名稱:ohmate-shop,代碼行數:12,代碼來源:OrderController.php

示例4: mothersDay

 public function mothersDay(Request $request)
 {
     return view('activities.mothersday')->with(['js' => \Wechat::getJssdkConfig(['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone'])]);
 }
開發者ID:whplay,項目名稱:ohmate-shop,代碼行數:4,代碼來源:ActivitiesController.php


注:本文中的Wechat::getJssdkConfig方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。