|
|
@ -53,7 +53,7 @@ class SourceEvent extends Controller
|
|
|
|
$gameSourceService = new GameSourceService();
|
|
|
|
$gameSourceService = new GameSourceService();
|
|
|
|
$result = $gameSourceService->sourcePack($data, $game);
|
|
|
|
$result = $gameSourceService->sourcePack($data, $game);
|
|
|
|
if (!$result['status']) {
|
|
|
|
if (!$result['status']) {
|
|
|
|
$this->error('添加失败' , U('GameSource/lists', ['type' => $data['type']]));
|
|
|
|
$this->error('添加失败, 打包失败,' . $result['message'] , U('GameSource/lists', ['type' => $data['type']]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$data['plist_url'] = $result['data']['plistUrl'];
|
|
|
|
$data['plist_url'] = $result['data']['plistUrl'];
|
|
|
|
$data['org_plist_url'] = $result['data']['orgPlistUrl'];
|
|
|
|
$data['org_plist_url'] = $result['data']['orgPlistUrl'];
|
|
|
@ -64,7 +64,7 @@ class SourceEvent extends Controller
|
|
|
|
$this->update_game_size($data);
|
|
|
|
$this->update_game_size($data);
|
|
|
|
$this->success('添加成功', U('GameSource/lists', ['type' => $data['type']]));
|
|
|
|
$this->success('添加成功', U('GameSource/lists', ['type' => $data['type']]));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$this->error('添加失败', U('GameSource/lists', ['type' => $data['type']]));
|
|
|
|
$this->error('添加失败,数据处理异常', U('GameSource/lists', ['type' => $data['type']]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|