Beispiel #1
0
 public function __construct($notify_url = null, $data = [])
 {
     if (!$notify_url) {
         $notify_url = Url::host() . '/pay/callback/wx_js';
     }
     $this->notify_url = $notify_url;
     $this->data = array_merge($this->data, $data);
 }
Beispiel #2
0
 /**
  * 跳转
  *
  * @param     $url
  * @param int $status
  */
 public function redirect($url, $status = 302)
 {
     Url::redirect($url, $status);
     self::quiet();
 }
Beispiel #3
0
 /**
  * 获取微信用户信息 需要授权
  *
  * @param string $redirectUrl
  */
 public function toGetAccessToken($redirectUrl)
 {
     Url::redirect($this->generateAuthUrl('snsapi_userinfo', $redirectUrl));
 }
Beispiel #4
0
<?php

/**
 * Created by ax@jentian.com.
 * Date: 2015/6/5 14:51
 *
 *
 */
namespace app\example;

use app\example\config\Base;
class Config extends Base
{
    const JSON_FORMAT = JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT;
    const ACCEPT_MIME = ['json', 'html'];
    const TPL_AUTO_LOAD = true;
    const TPL_CACHING = false;
    const SESSION_NAME = 'sys_ses_id';
    public static $webDefaultOption = ['titleSuffix' => '-金猫银猫', 'description' => '', 'keywords' => ''];
}
define('WEB_NAME', '金猫银猫');
define('URL_PAGE', \jt\utils\Url::current());
define('URL_LOGIN', '/');