42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
|
|
<?php
|
||
|
|
// +----------------------------------------------------------------------
|
||
|
|
// | ShopXO 国内领先企业级B2C免费开源电商系统
|
||
|
|
// +----------------------------------------------------------------------
|
||
|
|
// | Copyright (c) 2011~2099 http://shopxo.net All rights reserved.
|
||
|
|
// +----------------------------------------------------------------------
|
||
|
|
// | Licensed ( https://opensource.org/licenses/mit-license.php )
|
||
|
|
// +----------------------------------------------------------------------
|
||
|
|
// | Author: Devil
|
||
|
|
// +----------------------------------------------------------------------
|
||
|
|
namespace app\plugins\weixinwebauthorization\index;
|
||
|
|
|
||
|
|
use app\plugins\weixinwebauthorization\service\BaseService;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 微信网页授权
|
||
|
|
* @author Devil
|
||
|
|
* @blog http://gong.gg/
|
||
|
|
* @version 0.0.1
|
||
|
|
* @datetime 2016-12-01T21:51:08+0800
|
||
|
|
*/
|
||
|
|
class Index
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* 跳转
|
||
|
|
* @author Devil
|
||
|
|
* @blog http://gong.gg/
|
||
|
|
* @version 1.0.0
|
||
|
|
* @datetime 2019-02-07T08:21:54+0800
|
||
|
|
* @param [array] $params [输入参数]
|
||
|
|
*/
|
||
|
|
public function Jump($params = [])
|
||
|
|
{
|
||
|
|
$ret = BaseService::UrlOpenData($params);
|
||
|
|
if($ret['code'] == 0)
|
||
|
|
{
|
||
|
|
return MyRedirect($ret['data']);
|
||
|
|
}
|
||
|
|
return BaseService::ViewErrorHandle($ret);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
?>
|