try { $strExorder = isset($_GET['exorder']) ? $_GET['exorder'] : ''; //订单号 if (empty($strExorder)) { echo get_rsp_result(false, 'exorder is empty'); exit; } $isScore = (int) (isset($_GET['isscore']) ? $_GET['isscore'] : 0); require_once 'tasks/Exorder/ExorderRecordDb.class.php'; $erDb = new ExorderRecordDb(); $bResult = $erDb->updateMobileExorder($strExorder, $isScore); if (!$bResult) { Log::write('mcharge updateMobileExorder() failed', 'log'); echo get_rsp_result(false, 'save mobile charge failed'); exit; } echo get_rsp_result(true); require_once 'tasks/Records/RecordTask.class.php'; $rt = new RecordTask(); $nCoolType = isset($_GET['mtype']) ? $_GET['mtype'] : 0; $strCyid = isset($_GET['uid']) ? $_GET['uid'] : ''; if (!empty($strUid)) { $strId = isset($_GET['id']) ? $_GET['id'] : ''; $strCpid = isset($_GET['cpid']) ? $_GET['cpid'] : ''; $erDb->saveChargeRecord($strExorder, $strCyid, $nCoolType, $strId, $strCpid); } $rt->updateOrder($nCoolType, $strExorder, $isScore); } catch (Exception $e) { Log::write('mcharge exception', 'log'); echo get_rsp_result(false, 'mcharge exception'); }