Compare commits
2 Commits
malio-A
...
QuickEditi
| Author | SHA1 | Date |
|---|---|---|
|
|
df2f920703 | 6 years ago |
|
|
f98f872088 | 6 years ago |
@ -1,189 +1,189 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Gateway;
|
||||
|
||||
use App\Services\View;
|
||||
use App\Services\Auth;
|
||||
use App\Services\Config;
|
||||
use App\Models\Paylist;
|
||||
|
||||
class PAYJS extends AbstractPayment
|
||||
{
|
||||
private $appSecret;
|
||||
private $gatewayUri;
|
||||
/**
|
||||
* 签名初始化
|
||||
* @param merKey 签名密钥
|
||||
*/
|
||||
public function __construct($appSecret)
|
||||
{
|
||||
$this->appSecret = $appSecret;
|
||||
$this->gatewayUri = 'https://payjs.cn/api/';
|
||||
}
|
||||
/**
|
||||
* @name 准备签名/验签字符串
|
||||
*/
|
||||
public function prepareSign($data)
|
||||
{
|
||||
$data['mchid'] = Config::get('payjs_mchid');
|
||||
$data = array_filter($data);
|
||||
ksort($data);
|
||||
return http_build_query($data);
|
||||
}
|
||||
/**
|
||||
* @name 生成签名
|
||||
* @param sourceData
|
||||
* @return 签名数据
|
||||
*/
|
||||
public function sign($data)
|
||||
{
|
||||
return strtoupper(md5(urldecode($data) . '&key=' . $this->appSecret));
|
||||
}
|
||||
/*
|
||||
* @name 验证签名
|
||||
* @param signData 签名数据
|
||||
* @param sourceData 原数据
|
||||
* @return
|
||||
*/
|
||||
public function verify($data, $signature)
|
||||
{
|
||||
$mySign = $this->sign($data);
|
||||
return $mySign === $signature;
|
||||
}
|
||||
public function post($data, $type = 'pay')
|
||||
{
|
||||
if ($type == 'pay') {
|
||||
$this->gatewayUri .= 'cashier';
|
||||
} elseif ($type == 'refund') {
|
||||
$this->gatewayUri .= 'refund';
|
||||
} else {
|
||||
$this->gatewayUri .= 'check';
|
||||
}
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $this->gatewayUri);
|
||||
curl_setopt($curl, CURLOPT_HEADER, 0);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
|
||||
curl_setopt($curl, CURLOPT_POST, 1);
|
||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
|
||||
$data = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
return $data;
|
||||
}
|
||||
public function purchase($request, $response, $args)
|
||||
{
|
||||
$price = $request->getParam('price');
|
||||
$type = $request->getParam('type');
|
||||
if ($price <= 0) {
|
||||
return json_encode(['code' => -1, 'errmsg' => '非法的金额.']);
|
||||
}
|
||||
$user = Auth::getUser();
|
||||
$pl = new Paylist();
|
||||
$pl->userid = $user->id;
|
||||
$pl->total = $price;
|
||||
$pl->tradeno = self::generateGuid();
|
||||
$pl->save();
|
||||
//if ($type != 'alipay') {
|
||||
//$type = '';
|
||||
//}
|
||||
$data['mchid'] = Config::get('payjs_mchid');
|
||||
//$data['type'] = $type;
|
||||
$data['out_trade_no'] = $pl->tradeno;
|
||||
$data['total_fee'] = (float) $price * 100;
|
||||
$data['notify_url'] = Config::get('baseUrl') . '/payment/notify?way=payjs';
|
||||
//$data['callback_url'] = Config::get('baseUrl') . '/user/code';
|
||||
$params = $this->prepareSign($data);
|
||||
$data['sign'] = $this->sign($params);
|
||||
$url = 'https://payjs.cn/api/cashier?' . http_build_query($data);
|
||||
return json_encode(['code' => 0, 'url' => $url, 'pid' => $data['out_trade_no']]);
|
||||
//$result = json_decode($this->post($data), true);
|
||||
//$result['pid'] = $pl->tradeno;
|
||||
//return json_encode($result);
|
||||
}
|
||||
public function query($tradeNo)
|
||||
{
|
||||
$data['payjs_order_id'] = $tradeNo;
|
||||
$params = $this->prepareSign($data);
|
||||
$data['sign'] = $this->sign($params);
|
||||
return json_decode($this->post($data, $type = 'query'), true);
|
||||
}
|
||||
public function notify($request, $response, $args)
|
||||
{
|
||||
$data = $_POST;
|
||||
|
||||
if($data['return_code'] == 1){
|
||||
// 验证签名
|
||||
$in_sign = $data['sign'];
|
||||
unset($data['sign']);
|
||||
$data = array_filter($data);
|
||||
ksort($data);
|
||||
$sign = strtoupper(md5(urldecode(http_build_query($data) . '&key=' . $this->appSecret)));
|
||||
$resultVerify = $sign ? true : false;
|
||||
|
||||
//$str_to_sign = $this->prepareSign($data);
|
||||
//$resultVerify = $this->verify($str_to_sign, $request->getParam('sign'));
|
||||
|
||||
if ($resultVerify) {
|
||||
// 验重
|
||||
$p = Paylist::where('tradeno', '=', $data['out_trade_no'])->first();
|
||||
$money = $p->total;
|
||||
if ($p->status != 1) {
|
||||
$this->postPayment($data['out_trade_no'], '微信支付');
|
||||
echo 'SUCCESS';
|
||||
} else {
|
||||
echo 'ERROR';
|
||||
}
|
||||
} else {
|
||||
echo 'FAIL2';
|
||||
}
|
||||
} else {
|
||||
echo 'FAIL1';
|
||||
}
|
||||
}
|
||||
public function refund($merchantTradeNo)
|
||||
{
|
||||
$data['payjs_order_id'] = $merchantTradeNo;
|
||||
$params = $this->prepareSign($data);
|
||||
$data['sign'] = $this->sign($params);
|
||||
return $this->post($data, 'refund');
|
||||
}
|
||||
public function getPurchaseHTML()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
public function getReturnHTML($request, $response, $args)
|
||||
{
|
||||
$pid = $_GET['merchantTradeNo'];
|
||||
$p = Paylist::where('tradeno', '=', $pid)->first();
|
||||
$money = $p->total;
|
||||
if ($p->status == 1) {
|
||||
$success = 1;
|
||||
} else {
|
||||
$data = $_POST;
|
||||
|
||||
$in_sign = $data['sign'];
|
||||
unset($data['sign']);
|
||||
$data = array_filter($data);
|
||||
ksort($data);
|
||||
$sign = strtoupper(md5(urldecode(http_build_query($data) . '&key=' . $this->appSecret)));
|
||||
$resultVerify = $sign ? true : false;
|
||||
|
||||
if ($resultVerify) {
|
||||
$this->postPayment($data['out_trade_no'], '微信支付');
|
||||
$success = 1;
|
||||
} else {
|
||||
$success = 0;
|
||||
}
|
||||
}
|
||||
return View::getSmarty()->assign('money', $money)->assign('success', $success)->fetch('user/pay_success.tpl');
|
||||
}
|
||||
public function getStatus($request, $response, $args)
|
||||
{
|
||||
$return = [];
|
||||
$p = Paylist::where('tradeno', $_POST['pid'])->first();
|
||||
$return['ret'] = 1;
|
||||
$return['result'] = $p->status;
|
||||
return json_encode($return);
|
||||
}
|
||||
}
|
||||
<?php
|
||||
|
||||
namespace App\Services\Gateway;
|
||||
|
||||
use App\Services\View;
|
||||
use App\Services\Auth;
|
||||
use App\Services\Config;
|
||||
use App\Models\Paylist;
|
||||
|
||||
class PAYJS extends AbstractPayment
|
||||
{
|
||||
private $appSecret;
|
||||
private $gatewayUri;
|
||||
/**
|
||||
* 签名初始化
|
||||
* @param merKey 签名密钥
|
||||
*/
|
||||
public function __construct($appSecret)
|
||||
{
|
||||
$this->appSecret = $appSecret;
|
||||
$this->gatewayUri = 'https://payjs.cn/api/';
|
||||
}
|
||||
/**
|
||||
* @name 准备签名/验签字符串
|
||||
*/
|
||||
public function prepareSign($data)
|
||||
{
|
||||
$data['mchid'] = Config::get('payjs_mchid');
|
||||
$data = array_filter($data);
|
||||
ksort($data);
|
||||
return http_build_query($data);
|
||||
}
|
||||
/**
|
||||
* @name 生成签名
|
||||
* @param sourceData
|
||||
* @return 签名数据
|
||||
*/
|
||||
public function sign($data)
|
||||
{
|
||||
return strtoupper(md5(urldecode($data) . '&key=' . $this->appSecret));
|
||||
}
|
||||
/*
|
||||
* @name 验证签名
|
||||
* @param signData 签名数据
|
||||
* @param sourceData 原数据
|
||||
* @return
|
||||
*/
|
||||
public function verify($data, $signature)
|
||||
{
|
||||
$mySign = $this->sign($data);
|
||||
return $mySign === $signature;
|
||||
}
|
||||
public function post($data, $type = 'pay')
|
||||
{
|
||||
if ($type == 'pay') {
|
||||
$this->gatewayUri .= 'cashier';
|
||||
} elseif ($type == 'refund') {
|
||||
$this->gatewayUri .= 'refund';
|
||||
} else {
|
||||
$this->gatewayUri .= 'check';
|
||||
}
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $this->gatewayUri);
|
||||
curl_setopt($curl, CURLOPT_HEADER, 0);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
|
||||
curl_setopt($curl, CURLOPT_POST, 1);
|
||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
|
||||
$data = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
return $data;
|
||||
}
|
||||
public function purchase($request, $response, $args)
|
||||
{
|
||||
$price = $request->getParam('price');
|
||||
$type = $request->getParam('type');
|
||||
if ($price <= 0) {
|
||||
return json_encode(['code' => -1, 'errmsg' => '非法的金额.']);
|
||||
}
|
||||
$user = Auth::getUser();
|
||||
$pl = new Paylist();
|
||||
$pl->userid = $user->id;
|
||||
$pl->total = $price;
|
||||
$pl->tradeno = self::generateGuid();
|
||||
$pl->save();
|
||||
//if ($type != 'alipay') {
|
||||
//$type = '';
|
||||
//}
|
||||
$data['mchid'] = Config::get('payjs_mchid');
|
||||
//$data['type'] = $type;
|
||||
$data['out_trade_no'] = $pl->tradeno;
|
||||
$data['total_fee'] = (float) $price * 100;
|
||||
$data['notify_url'] = Config::get('baseUrl') . '/payment/notify?way=payjs';
|
||||
//$data['callback_url'] = Config::get('baseUrl') . '/user/code';
|
||||
$params = $this->prepareSign($data);
|
||||
$data['sign'] = $this->sign($params);
|
||||
$url = 'https://payjs.cn/api/cashier?' . http_build_query($data);
|
||||
return json_encode(['code' => 0, 'url' => $url, 'pid' => $data['out_trade_no']]);
|
||||
//$result = json_decode($this->post($data), true);
|
||||
//$result['pid'] = $pl->tradeno;
|
||||
//return json_encode($result);
|
||||
}
|
||||
public function query($tradeNo)
|
||||
{
|
||||
$data['payjs_order_id'] = $tradeNo;
|
||||
$params = $this->prepareSign($data);
|
||||
$data['sign'] = $this->sign($params);
|
||||
return json_decode($this->post($data, $type = 'query'), true);
|
||||
}
|
||||
public function notify($request, $response, $args)
|
||||
{
|
||||
$data = $_POST;
|
||||
|
||||
if($data['return_code'] == 1){
|
||||
// 验证签名
|
||||
$in_sign = $data['sign'];
|
||||
unset($data['sign']);
|
||||
$data = array_filter($data);
|
||||
ksort($data);
|
||||
$sign = strtoupper(md5(urldecode(http_build_query($data) . '&key=' . $this->appSecret)));
|
||||
$resultVerify = $sign ? true : false;
|
||||
|
||||
//$str_to_sign = $this->prepareSign($data);
|
||||
//$resultVerify = $this->verify($str_to_sign, $request->getParam('sign'));
|
||||
|
||||
if ($resultVerify) {
|
||||
// 验重
|
||||
$p = Paylist::where('tradeno', '=', $data['out_trade_no'])->first();
|
||||
$money = $p->total;
|
||||
if ($p->status != 1) {
|
||||
$this->postPayment($data['out_trade_no'], '微信支付');
|
||||
echo 'SUCCESS';
|
||||
} else {
|
||||
echo 'ERROR';
|
||||
}
|
||||
} else {
|
||||
echo 'FAIL2';
|
||||
}
|
||||
} else {
|
||||
echo 'FAIL1';
|
||||
}
|
||||
}
|
||||
public function refund($merchantTradeNo)
|
||||
{
|
||||
$data['payjs_order_id'] = $merchantTradeNo;
|
||||
$params = $this->prepareSign($data);
|
||||
$data['sign'] = $this->sign($params);
|
||||
return $this->post($data, 'refund');
|
||||
}
|
||||
public function getPurchaseHTML()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
public function getReturnHTML($request, $response, $args)
|
||||
{
|
||||
$pid = $_GET['merchantTradeNo'];
|
||||
$p = Paylist::where('tradeno', '=', $pid)->first();
|
||||
$money = $p->total;
|
||||
if ($p->status == 1) {
|
||||
$success = 1;
|
||||
} else {
|
||||
$data = $_POST;
|
||||
|
||||
$in_sign = $data['sign'];
|
||||
unset($data['sign']);
|
||||
$data = array_filter($data);
|
||||
ksort($data);
|
||||
$sign = strtoupper(md5(urldecode(http_build_query($data) . '&key=' . $this->appSecret)));
|
||||
$resultVerify = $sign ? true : false;
|
||||
|
||||
if ($resultVerify) {
|
||||
$this->postPayment($data['out_trade_no'], '微信支付');
|
||||
$success = 1;
|
||||
} else {
|
||||
$success = 0;
|
||||
}
|
||||
}
|
||||
return View::getSmarty()->assign('money', $money)->assign('success', $success)->fetch('user/pay_success.tpl');
|
||||
}
|
||||
public function getStatus($request, $response, $args)
|
||||
{
|
||||
$return = [];
|
||||
$p = Paylist::where('tradeno', $_POST['pid'])->first();
|
||||
$return['ret'] = 1;
|
||||
$return['result'] = $p->status;
|
||||
return json_encode($return);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,40 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>页面无法找到哦 - 网站名称</title>
|
||||
<meta name="keywords" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="shortcut icon" href="/favicon.ico"/>
|
||||
<link rel="bookmark" href="/favicon.ico" type="image/x-icon"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="shortcut icon" type="image/ico" href="images/ssr.ico">
|
||||
<link rel="stylesheet" href="/assets/css/main.css" />
|
||||
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="/assets/css/noscript.css" />
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
<span class="icon fa-rocket"></span></div>
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>404错误</h1>
|
||||
<p>您的页面查找不到咯</p></div></div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./#">返回首页</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<footer id="footer"><p class="copyright">©2015-2017 网站名称</p></footer>
|
||||
</div>
|
||||
<div id="bg"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
</body></html>
|
||||
@ -1,17 +0,0 @@
|
||||
可以使用download.sh脚本自动下载的客户端:
|
||||
Clash-Windows.7z
|
||||
ClashX.dmg
|
||||
ss-android.apk
|
||||
ss-win.zip
|
||||
ss-mac.zip
|
||||
ssd-android.apk
|
||||
ssd-win.7z
|
||||
ssrr-android.apk
|
||||
v2rayng.apk
|
||||
|
||||
需要手动下载的客户端:
|
||||
kitsunebi.apk
|
||||
surfboard.apk
|
||||
ssr.7z
|
||||
netch.7z
|
||||
clash-for-android.apk
|
||||
@ -1,166 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
get_latest_release() {
|
||||
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
|
||||
grep '"tag_name":' | # Get tag line
|
||||
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
|
||||
}
|
||||
|
||||
git clone https://github.com/xcxnig/ssr-download.git deploy
|
||||
|
||||
# Clash for Windows
|
||||
|
||||
echo "==========================================================================="
|
||||
echo "* Clash for Windows"
|
||||
echo "https://github.com/Fndroid/clash_for_windows_pkg"
|
||||
|
||||
clash_for_windows_pkg_version=$(get_latest_release "Fndroid/clash_for_windows_pkg")
|
||||
|
||||
echo "Latest Verison: $clash_for_windows_pkg_version"
|
||||
|
||||
|
||||
mkdir -p Clash-Windows
|
||||
wget -o /dev/null -O Clash-Windows/Clash.for.Windows.Setup.$clash_for_windows_pkg_version.exe "https://github.com/Fndroid/clash_for_windows_pkg/releases/download/$clash_for_windows_pkg_version/Clash.for.Windows.Setup.$clash_for_windows_pkg_version.exe"
|
||||
7za a Clash-Windows.7z ./Clash-Windows/*
|
||||
[ -d "Clash-Windows.7z" ] && mv -f Clash-Windows.7z ./deploy/Clash-Windows.7z
|
||||
rm -rf Clash-Windows
|
||||
|
||||
|
||||
sleep 35
|
||||
|
||||
# clashX(macOS)
|
||||
|
||||
echo "==========================================================================="
|
||||
echo "* ClashX (for macOS)"
|
||||
echo "https://github.com/yichengchen/clashX"
|
||||
|
||||
clashx_version=$(get_latest_release "yichengchen/clashX")
|
||||
|
||||
echo "Latest Verison: $clashx_version"
|
||||
|
||||
|
||||
wget -o /dev/null -O ClashX.dmg "https://github.com/yichengchen/clashX/releases/download/$clashx_version/ClashX.dmg"
|
||||
[ -d "ClashX.dmg" ] && mv -f ClashX.dmg ./deploy/ClashX.dmg
|
||||
|
||||
|
||||
sleep 35
|
||||
|
||||
# Shadowsocks Android
|
||||
|
||||
echo "==========================================================================="
|
||||
echo "* Shadowsocks Android"
|
||||
echo "https://github.com/shadowsocks/shadowsocks-android"
|
||||
|
||||
ss_android_version=$(get_latest_release "shadowsocks/shadowsocks-android" | sed 's|v||g')
|
||||
|
||||
echo "Latest Verison: $ss_android_version"
|
||||
|
||||
|
||||
wget -o /dev/null -O ss-android.apk "https://github.com/shadowsocks/shadowsocks-android/releases/download/v$ss_android_version/shadowsocks--universal-$ss_android_version.apk"
|
||||
[ -d "ss-android.apk" ] && mv -f ss-android.apk ./deploy/ss-android.apk
|
||||
|
||||
|
||||
sleep 35
|
||||
|
||||
# Shadowsocks Windows
|
||||
|
||||
echo "==========================================================================="
|
||||
echo "* Shadowsocks Windows"
|
||||
echo "https://github.com/shadowsocks/shadowsocks-windows"
|
||||
|
||||
ss_windows_version=$(get_latest_release "shadowsocks/shadowsocks-windows")
|
||||
|
||||
echo "Latest Verison: $ss_windows_version"
|
||||
|
||||
|
||||
wget -o /dev/null -O ss-win.zip "https://github.com/shadowsocks/shadowsocks-windows/releases/download/$ss_windows_version/Shadowsocks-$ss_windows_version.zip"
|
||||
[ -d "ss-win.zip" ] && mv -f ss-win.zip ./deploy/ss-win.zip
|
||||
|
||||
|
||||
sleep 35
|
||||
|
||||
# ShadowsocksX-NG
|
||||
|
||||
echo "==========================================================================="
|
||||
echo "* ShadowsocksX-NG (macOS)"
|
||||
echo "https://github.com/shadowsocks/ShadowsocksX-NG"
|
||||
|
||||
ss_mac_version=$(get_latest_release "shadowsocks/ShadowsocksX-NG" | sed 's|v||g')
|
||||
|
||||
echo "Latest Verison: $ss_mac_version"
|
||||
|
||||
|
||||
wget -o /dev/null -O ss-mac.zip "https://github.com/shadowsocks/ShadowsocksX-NG/releases/download/v$ss_mac_version/ShadowsocksX-NG.app.$ss_mac_version.zip"
|
||||
[ -d "ss-mac.zip" ] && mv -f ss-mac.zip ./deploy/ss-mac.zip
|
||||
|
||||
|
||||
sleep 35
|
||||
|
||||
# ShadowsocksD Android
|
||||
|
||||
echo "==========================================================================="
|
||||
echo "* ShadowsocksD Android"
|
||||
echo "https://github.com/TheCGDF/SSD-Android"
|
||||
|
||||
ssd_android_version=$(get_latest_release "TheCGDF/SSD-Android")
|
||||
|
||||
echo "Latest Verison: $ssd_android_version"
|
||||
|
||||
|
||||
wget -o /dev/null -O ssd-android.apk "https://github.com/TheCGDF/SSD-Android/releases/download/$ssd_android_version/shadowsocksd_$ssd_android_version.apk"
|
||||
[ -d "ssd-android.apk" ] && mv -f ssd-android.apk ./deploy/ssd-android.apk
|
||||
|
||||
|
||||
sleep 35
|
||||
|
||||
# ShadowsocksD Windows
|
||||
|
||||
echo "==========================================================================="
|
||||
echo "* ShadowsocksD Windows"
|
||||
echo "https://github.com/TheCGDF/SSD-Windows"
|
||||
|
||||
ssd_windows_version=$(get_latest_release "TheCGDF/SSD-Windows")
|
||||
|
||||
echo "Latest Verison: $ssd_windows_version"
|
||||
|
||||
|
||||
mkdir -p SSD-Windows
|
||||
wget -o /dev/null -O ssd-win.zip "https://github.com/TheCGDF/SSD-Windows/releases/download/$ssd_windows_version/Shadowsocks-$ssd_windows_version.zip"
|
||||
unzip ssd-win.zip
|
||||
rm -rf ssd-win.zip
|
||||
7za a ssd-win.7z ShadowsocksD.exe
|
||||
[ -d "ssd-win.7z" ] && mv -f ssd-win.7z ./deploy/ssd-win.7z
|
||||
|
||||
|
||||
sleep 35
|
||||
|
||||
# ShadowsocksRR Android
|
||||
|
||||
echo "==========================================================================="
|
||||
echo "* ShadowsocksRR Android"
|
||||
echo "https://github.com/shadowsocksrr/shadowsocksr-android"
|
||||
|
||||
ssrr_android_version=$(get_latest_release "shadowsocksrr/shadowsocksr-android")
|
||||
|
||||
echo "Latest Verison: $ssrr_android_version"
|
||||
|
||||
|
||||
wget -o /dev/null -O ssrr-android.apk "https://github.com/shadowsocksrr/shadowsocksr-android/releases/download/$ssrr_android_version/shadowsocksr-android-$ssrr_android_version.apk"
|
||||
[ -d "ssrr-android.apk" ] && mv -f ssrr-android.apk ./deploy/ssrr-android.apk
|
||||
|
||||
|
||||
sleep 35
|
||||
|
||||
# V2RayNG
|
||||
|
||||
echo "==========================================================================="
|
||||
echo "* V2RayNG (Android)"
|
||||
echo "https://github.com/2dust/v2rayNG"
|
||||
|
||||
v2rayng_android_version=$(get_latest_release "2dust/v2rayNG")
|
||||
|
||||
echo "Latest Verison: $v2rayng_android_version"
|
||||
|
||||
|
||||
wget -o /dev/null -O v2rayng.apk "https://github.com/2dust/v2rayNG/releases/download/$v2rayng_android_version/app-universal-release.apk"
|
||||
[ -d "v2rayng.apk" ] && mv -f v2rayng.apk ./deploy/v2rayng.apk
|
||||
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 211 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 157 KiB |
|
Before Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 607 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 545 B After Width: | Height: | Size: 545 B |
|
Before Width: | Height: | Size: 837 B After Width: | Height: | Size: 837 B |
|
Before Width: | Height: | Size: 567 B After Width: | Height: | Size: 567 B |
|
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 830 B |
|
Before Width: | Height: | Size: 925 B After Width: | Height: | Size: 925 B |
|
Before Width: | Height: | Size: 983 B After Width: | Height: | Size: 983 B |
|
Before Width: | Height: | Size: 769 B After Width: | Height: | Size: 769 B |
|
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 396 B |
|
Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 471 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 312 B |
|
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 677 B |
|
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 267 B |
|
Before Width: | Height: | Size: 518 B After Width: | Height: | Size: 518 B |
|
Before Width: | Height: | Size: 437 B After Width: | Height: | Size: 437 B |
|
Before Width: | Height: | Size: 834 B After Width: | Height: | Size: 834 B |
|
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 295 B |
|
Before Width: | Height: | Size: 433 B After Width: | Height: | Size: 433 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 416 B After Width: | Height: | Size: 416 B |
|
Before Width: | Height: | Size: 863 B After Width: | Height: | Size: 863 B |
|
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 623 B |
|
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 268 B |
|
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 298 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 570 B |