|
|
|
@ -41,6 +41,7 @@ class SourceEvent extends Controller
|
|
|
|
|
$data['remark'] = json_encode(explode('@@@', $remark));
|
|
|
|
|
if ($data['file_type'] == 2) {
|
|
|
|
|
$data['plist_url'] = "./Uploads/SourcePlist/" . $data['game_id'] . ".Plist";
|
|
|
|
|
$data['org_plist_url'] = "./Uploads/OrgSourcePlist/" . $data['game_id'] . ".Plist";
|
|
|
|
|
$plist -> create_plist($data['game_id'], 0, $data['bao_name'], $data['file_url']);
|
|
|
|
|
}
|
|
|
|
|
$res = $model -> add($data);
|
|
|
|
@ -100,6 +101,7 @@ class SourceEvent extends Controller
|
|
|
|
|
}
|
|
|
|
|
if ($data['file_type'] == 2) {
|
|
|
|
|
$data['plist_url'] = "./Uploads/SourcePlist/" . $data['game_id'] . ".Plist";
|
|
|
|
|
$data['org_plist_url'] = "./Uploads/OrgSourcePlist/" . $data['game_id'] . ".Plist";
|
|
|
|
|
$plist -> create_plist($data['game_id'], 0, $data['bao_name'], $data['file_url']);
|
|
|
|
|
}
|
|
|
|
|
$data['source_version'] = $game_source['source_version'] + 1;
|
|
|
|
@ -265,6 +267,7 @@ class SourceEvent extends Controller
|
|
|
|
|
if ($file_type == 2) {
|
|
|
|
|
$data['plist_url'] = "./Uploads/SourcePlist/" . $data['game_id'] . ".Plist";
|
|
|
|
|
$plist -> create_plist($game_id, 0, $baoName, $to);
|
|
|
|
|
$plist -> create_org_plist($game_id, 0, $baoName, $originalUrl);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|