Merge branch 'hotfix/pack_package' of wmtx/platform into release

优化打包
master
廖金灵 4 years ago committed by Gogs
commit 6a8f1a517f

@ -58,7 +58,7 @@ class AutoPackController extends Think
$this->checkPackageStatus();
// $this->app_package();//app渠道自动打包
$result = $this->channel();
$result = $this->channel($currentProgress);
// $this->launch_package(false);
// $this->leak_detection();
Redis::decr('console_packing');
@ -306,7 +306,7 @@ class AutoPackController extends Think
/**
* 渠道游戏打包
*/
private function channel() {
private function channel($currentProgress = 0) {
$map = [];
$map['status'] = 1;
$map['enable_status'] = ['in', '0,2'];
@ -347,7 +347,7 @@ class AutoPackController extends Think
$game = $games[$apply['game_id']];
$launchCount = $launchCountList[$apply['id']] ?? 0;
$result = $gameSourceService->channelPack($gameSource, $game, $apply, $launchCount);
$message = '游戏['. $apply['game_id'] . '],渠道['. $apply['promote_id'] . ']打包,';
$message = '进程[' . $currentProgress . ']游戏['. $apply['game_id'] . '],渠道['. $apply['promote_id'] . ']打包,';
$packResult['total'] += 1;
if ($result['status']) {
$message = 'SUCCESS ----- ' . $message . $result['message'];

Loading…
Cancel
Save