|
|
|
@ -74,7 +74,7 @@ class GameSourceService {
|
|
|
|
|
'game_id' => $game['id'],
|
|
|
|
|
'game_name' => $game['game_name'],
|
|
|
|
|
'game_appid' => $game['game_appid'],
|
|
|
|
|
'promote_id' => $apply ? $apply['promote_id'] : '',
|
|
|
|
|
'promote_id' => $apply ? $apply['promote_id'] : '0',
|
|
|
|
|
'promote_account' => $apply ? $apply['promote_account'] : '自然渠道',
|
|
|
|
|
'source_version' => $gameSource['source_version'],
|
|
|
|
|
];
|
|
|
|
@ -117,6 +117,10 @@ class GameSourceService {
|
|
|
|
|
{
|
|
|
|
|
$zip = new \ZipArchive();
|
|
|
|
|
if ($zip->open($zipFile, \ZipArchive::CREATE)) {
|
|
|
|
|
$rows = explode('/' . $distFolder);
|
|
|
|
|
unset($rows[count($rows) -1]);
|
|
|
|
|
$txChannelFolder = implode('/', $rows);
|
|
|
|
|
$zip->deleteName($txChannelFolder);
|
|
|
|
|
$zip->addEmptyDir($distFolder);
|
|
|
|
|
$zip->close();
|
|
|
|
|
return true;
|
|
|
|
|