Merge pull request '有害' (#371) from hotfix/remove_promote_package into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/371
master
廖金灵 4 years ago
commit 44e17b0371

@ -175,12 +175,12 @@ class ApplyService {
'message' => '参数异常',
];
}
if ($data['type'] != $type) {
/* if ($data['type'] != $type) {
return [
'status' => false,
'message' => '参数异常',
];
}
} */
if ($data['expires_in'] > 0 && time() > (strtotime($data['created_at']) + $data['expires_in'])) {
return [
'status' => false,

@ -91,14 +91,14 @@ class PackageController extends Controller
$map = [];
$map['status'] = 1;
$map['enable_status'] = 1;
$map['game_id'] = $game['game_id'];
$map['game_id'] = $game['id'];
$map['promote_id'] = $promoteId;
$apply = M('apply','tab_')->where($map)->find();
if (!$apply) {
$this->redirect("package/downloadError", ['message' => '该链接已经停止使用']);
}
$packageUrl = $sdkVersion == 1 ? $apply['pack_url'] : $apply['plist_url'];
$packageUrl = $game['sdk_version'] == 1 ? $apply['pack_url'] : $apply['plist_url'];
$url = $applyService->getLandingPageUrl($apply, $code);
M('game','tab_')->where(['id' => $game['id']])->setInc('dow_num');
@ -113,7 +113,7 @@ class PackageController extends Controller
M('user_action_log', 'tab_')->data($log)->add();
$downloadDomain = $applyService->getDownloadDomain();
if ($sdkVersion == 2) {
if ($game['sdk_version'] == 2) {
$packageDownloadLogService = new PackageDownloadLogService();
$packageDownloadLogService->add([
'user_id' => 0,

Loading…
Cancel
Save