|
@@ -100,7 +100,7 @@ class mobileControl
|
|
|
}
|
|
|
static public function outsuccess($data,$page = '')
|
|
|
{
|
|
|
- static $json_clients = array('android', 'ios','ajax');
|
|
|
+ static $json_clients = array('android', 'ios'); //,'ajax'
|
|
|
if(in_array($_SESSION['client_type'],$json_clients)) {
|
|
|
joutput_data($data);
|
|
|
}
|
|
@@ -115,6 +115,11 @@ class mobileControl
|
|
|
TPL::showpage($page);
|
|
|
}
|
|
|
}
|
|
|
+ else if($_SESSION['client_type'] == 'ajax') {
|
|
|
+ echo "callback(";
|
|
|
+ joutput_data($data);
|
|
|
+ echo ")";
|
|
|
+ }
|
|
|
else
|
|
|
{
|
|
|
echo 'success: return data=<br/>';
|