|
|
|
@ -165,12 +165,12 @@ class GameSourceService {
|
|
|
|
|
$orgPlistUrl = '';
|
|
|
|
|
if ($game['sdk_version'] == 2) {
|
|
|
|
|
$params = [
|
|
|
|
|
'domain' => '',
|
|
|
|
|
'packageName' => $gameSource['bao_name'],
|
|
|
|
|
'gameId' => $game['id'],
|
|
|
|
|
'gameName' => $game['game_name'],
|
|
|
|
|
'promoteId' => 0,
|
|
|
|
|
'packageUrl' => $fileUrl,
|
|
|
|
|
'gameIcon' => '',
|
|
|
|
|
'gameIcon' => get_cover($game['icon'], 'path'),
|
|
|
|
|
'type' => 'pack'
|
|
|
|
|
];
|
|
|
|
|
$result = $this->createPlist($params);
|
|
|
|
@ -258,12 +258,12 @@ class GameSourceService {
|
|
|
|
|
$plistUrl = '';
|
|
|
|
|
if ($apply['sdk_version'] == 2) {
|
|
|
|
|
$params = [
|
|
|
|
|
'domain' => '',
|
|
|
|
|
'packageName' => $gameSource['bao_name'],
|
|
|
|
|
'gameId' => $game['id'],
|
|
|
|
|
'gameName' => $game['game_name'],
|
|
|
|
|
'promoteId' => $apply['promote_id'],
|
|
|
|
|
'packageUrl' => $packageUrl,
|
|
|
|
|
'gameIcon' => '',
|
|
|
|
|
'gameIcon' => get_cover($game['icon'], 'path'),
|
|
|
|
|
'type' => 'pack'
|
|
|
|
|
];
|
|
|
|
|
$result = $this->createPlist($params);
|
|
|
|
@ -311,8 +311,8 @@ class GameSourceService {
|
|
|
|
|
//生成游戏渠道plist文件
|
|
|
|
|
public function createPlist($params)
|
|
|
|
|
{
|
|
|
|
|
$domain = $params['domain'] ?? '';
|
|
|
|
|
$packageName = $params['packageName'] ?? '';
|
|
|
|
|
$gameName = $params['gameName'] ?? '';
|
|
|
|
|
$gameId = $params['gameId'] ?? 0;
|
|
|
|
|
$promoteId = $params['promoteId'] ?? 0;
|
|
|
|
|
$packageUrl = $params['packageUrl'] ?? '';
|
|
|
|
@ -344,14 +344,14 @@ class GameSourceService {
|
|
|
|
|
if (preg_match("/http/", $packageUrl)) {
|
|
|
|
|
$element->nodeValue = $packageUrl;
|
|
|
|
|
} else {
|
|
|
|
|
$element->nodeValue = "https://" . $domain . ltrim($packageUrl, '.');
|
|
|
|
|
$element->nodeValue = C('DOMAIN_DOWNLOAD') . ltrim($packageUrl, '.');
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 'icon':
|
|
|
|
|
if (preg_match("/http/", $gameIcon)) {
|
|
|
|
|
$element->nodeValue = $gameIcon;
|
|
|
|
|
} else {
|
|
|
|
|
$element->nodeValue = "https://" . $domain . $gameIcon;
|
|
|
|
|
$element->nodeValue = C('DOMAIN_OFFICIAL_PC') . ltrim($gameIcon, '.');
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 'com.dell':
|
|
|
|
@ -361,7 +361,7 @@ class GameSourceService {
|
|
|
|
|
$element->nodeValue = false;
|
|
|
|
|
break;
|
|
|
|
|
case 'mchdemo':
|
|
|
|
|
$element->nodeValue = false;
|
|
|
|
|
$element->nodeValue = $gameName;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|