private function _sendAppNotice(&$rs, $title, $content) { T('other/xingeApp'); $sendInfo = array('title' => $title, 'content' => $content, 'custom' => array('mod' => 'orderdetail', 'para' => 'oid=' . $rs['order_id'])); $result = XingeApp::Push($sendInfo, (string) $rs['uid']); // print_r($result); $res = array('result' => 0, 'msg' => '-1-未知错误'); //安卓系统 if ($rs['order_source'] == 2 && isset($result['android']['ret_code'])) { if ($result['android']['ret_code'] == 0) { $res = array('result' => 1, 'msg' => 'ok'); } else { $res = array('result' => 0, 'msg' => $result['android']['ret_code'] . '-' . $result['android']['err_msg']); } } //IOS系统 if ($rs['order_source'] == 1 && isset($result['ios']['ret_code'])) { if ($result['ios']['ret_code'] == 0) { $res = array('result' => 1, 'msg' => 'ok'); } else { $res = array('result' => 0, 'msg' => $result['ios']['ret_code'] . '-' . $result['ios']['err_msg']); } } // z($res); return $res; }