master
ELF 5 years ago
parent be6357eeac
commit 6c636a92f5

@ -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;

@ -59,7 +59,7 @@ class Base62
return implode('', $result);
}
public static function decode($string, $decodes)
public static function decode($string)
{
$decodes = self::getIndexChars(self::ENCODES);
$chars = self::getCharArray($string);

Loading…
Cancel
Save