Merge branch 'dev-cz' into dev_zcl
# Conflicts: # Application/Sdk/Controller/Ipa365Controller.class.phpmaster
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
namespace Base\Service;
|
||||
|
||||
use Base\Model\PromoteModel;
|
||||
use Base\Model\ApplyModel;
|
||||
|
||||
class GameSourceService {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getChannelConfigFile($gameSource) {
|
||||
$configUrl = '';
|
||||
if ($gameSource['sdk_version'] == 1) {
|
||||
$configUrl = "META-INF/mch.properties";
|
||||
} else {
|
||||
$preUrl = '';
|
||||
$zipGameSource = zip_open($this->getGameSourceUrl($gameSource));
|
||||
if ($zipGameSource) {
|
||||
while ($zipEntry = zip_read($zipGameSource)) {
|
||||
if (preg_match("/^Payload.*?\.app/", zip_entry_name($zipEntry), $matches)) {
|
||||
$preUrl = $matches[0];
|
||||
break;
|
||||
}
|
||||
}
|
||||
zip_close($zipGameSource);
|
||||
}
|
||||
$configUrl = $preUrl . '/_CodeSignature/TXChannel';
|
||||
}
|
||||
return $configUrl;
|
||||
}
|
||||
|
||||
public function getGameSourceUrl($gameSource){
|
||||
$path = '';
|
||||
if($gameSource['file_type'] == '1'){
|
||||
$path = './Uploads/SourcePack/';
|
||||
}else{
|
||||
$path = './Uploads/Ios/original/';
|
||||
}
|
||||
$fileUrl = $path . $gameSource['file_name'];
|
||||
return ROOTTT . ltrim($fileUrl, './');
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<title>登陆页</title>
|
||||
<link href="__CSS__/ssg/common.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="page-container container-white">
|
||||
<div class="top">
|
||||
<a href="javascript:history.go(-1);"></a>登录
|
||||
</div>
|
||||
<div class="login">
|
||||
<div class="login-title">
|
||||
<h2>Hello!终于等到你~</h2>
|
||||
<input type="hidden" value="{$promote_id}" id="promote_id" name="promote_id"/>
|
||||
</div>
|
||||
<div class="login-input">
|
||||
<ul>
|
||||
<li>
|
||||
<label>
|
||||
<input type="text" id="userAccount" name="userAccount" placeholder="用户名">
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
<input type="password" id="password" name="password" placeholder="登录密码">
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
<input type="text" id="userCode" name="userCode" maxlength="4" placeholder="验证码">
|
||||
<img id="verifyCode" style="cursor:pointer" onclick="GetVerityCode()" src="/mobile.php?s=/Ssg/verify.html">
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="login-btn"><a href="javascript:;" onclick="Login()">登录</a></div>
|
||||
<div style="padding-top: 0.2rem;" class="login-btn"><a href="/mobile.php?s=/User/step1.html">注册</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
|
||||
<script src="__JS__/ssg/jquery.md5.js" type="text/javascript"></script>
|
||||
<script src="__JS__/ssg/common.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
var loginLock = false;
|
||||
function GetVerityCode() {
|
||||
//刷新验证码
|
||||
$("#verifyCode").attr("src", "/mobile.php?s=/Ssg/verify.html&id=" + Math.random());
|
||||
}
|
||||
function Login() {
|
||||
var loginName = $("#userAccount").val();
|
||||
var loginPass = $("#password").val();
|
||||
var userCode = $("#userCode").val();
|
||||
var promoteId = $("#promote_id").val();
|
||||
if (loginName == "") {
|
||||
alert("账号不能为空");
|
||||
return false;
|
||||
}
|
||||
if (loginPass == "") {
|
||||
alert("密码不能为空");
|
||||
return false;
|
||||
}
|
||||
if (userCode == "") {
|
||||
alert("验证码不能为空");
|
||||
return false;
|
||||
}
|
||||
if (promoteId == "") {
|
||||
alert("推广员ID不能为空");
|
||||
return false;
|
||||
}
|
||||
|
||||
jQuery.ajax({
|
||||
type: 'POST',
|
||||
url:'mobile.php?s=/Ssg/do_login.html',
|
||||
data: {
|
||||
'Account':loginName,
|
||||
'Password':(loginPass),
|
||||
'VerifyCode':userCode,
|
||||
'promote_id' :promoteId,
|
||||
},
|
||||
dataType: 'JSON',
|
||||
xhrFields:{
|
||||
withCredentials:true
|
||||
},
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function (result) {
|
||||
if (result.ErrorCode!=0){
|
||||
alert(result.ResultMsg);
|
||||
GetVerityCode();
|
||||
}else{
|
||||
window.location.href="mobile.php?s=/Ssg/index.html"
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1,2 @@
|
||||
/** layui-v2.5.5 MIT License By https://www.layui.com */
|
||||
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
|
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 701 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 277 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 777 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 5.7 KiB |