/** * app web 用 */ static function appMsg($pMsg = '', $pStatus = 0, $pData = '', $pJsoncallback = '') { if (empty($_GET['jsoncallback'])) { Tool_Fnc::appMsg_pri($pMsg, $pStatus, $pData); } header('Content-Type:text/html;Charset=utf-8'); $tResult = array('repstatus' => $pStatus, 'repmsg' => $pMsg); if (!empty($pData)) { $tResult = array_merge($tResult, $pData); } echo $_GET['jsoncallback'] . "(" . json_encode($tResult) . ")"; exit; }