This commit is contained in:
zyx0814
2024-04-30 22:55:18 +08:00
Unverified
parent 98d8cfe37b
commit bbae232e49
730 changed files with 28811 additions and 6221 deletions

View File

@@ -21,21 +21,41 @@ if ($locked) {
$force = isset($_GET['force']) ? intval($_GET['force']) : 0;
$data = C::t('pichome_vapp')->fetch($appid);
if (!$data) exit(json_encode(array('error' => 'no data')));
if ($data['state'] != 3 && $data['isdelete'] != 0) exit(json_encode(array('error' => 'is deleted or state is not allow')));
if ($data['state'] != 3 || $data['isdelete'] > 0) exit(json_encode(array('error' => 'is deleted or state is not allow')));
if ($data['type'] == 0) {
include_once DZZ_ROOT.'dzz'.BS.'eagle'.BS.'class'.BS.'class_eagleexport.php';
//include_once dzz_libfile('eagleexport');
$eagleexport = new eagleexport($data);
$return = $eagleexport->execCheckFile();
try{
$return = $eagleexport->execCheckFile();
}catch (Exception $e){
C::t('pichome_vapp')->update($appid,['state'=>0]);
runlog('eagleexporterror', $appid . $e->getMessage());
dzz_process::unlock($processname);
}
} elseif ($data['type'] == 1) {
include_once DZZ_ROOT.'dzz'.BS.'local'.BS.'class'.BS.'class_localexport.php';
//include_once dzz_libfile('localexport');
$localexport = new localexport($data);
$return = $localexport->execCheckFile();
try{
$return = $localexport->execCheckFile();
}catch (Exception $e){
C::t('pichome_vapp')->update($appid,['state'=>0]);
runlog('localexporterror', $appid . $e->getMessage());
dzz_process::unlock($processname);
}
}elseif ($data['type'] == 2){
include_once DZZ_ROOT.'dzz'.BS.'billfish'.BS.'class'.BS.'class_billfishexport.php';
$billfishxport = new billfishxport($data);
$return = $billfishxport->execCheckFile();
try{
$return = $billfishxport->execCheckFile();
}catch (Exception $e){
C::t('pichome_vapp')->update($appid,['state'=>0]);
runlog('billfishexporterror', $appid . $e->getMessage());
dzz_process::unlock($processname);
}
}
dzz_process::unlock($processname);
$data = C::t('pichome_vapp')->fetch($appid);