|
@@ -75,7 +75,7 @@ class AdminController extends DooController {
|
|
|
$is_login = $client->zhsso_member_login ( $data ['name'], $data ['password'] );
|
|
|
|
|
|
$is_login = explode ( "\r", $is_login );
|
|
|
-
|
|
|
+
|
|
|
if (is_numeric ( $is_login [0] )) {
|
|
|
if ($is_login [0] == USERNAME_ONFINE) {
|
|
|
|
|
@@ -140,13 +140,13 @@ class AdminController extends DooController {
|
|
|
*/
|
|
|
function navon() {
|
|
|
$data ['now'] = 'use';
|
|
|
-
|
|
|
+
|
|
|
$list=$this->adminlogic->get_examine_list();
|
|
|
-
|
|
|
+
|
|
|
if(!empty($list)){
|
|
|
$this->menu ['navon'][4]='<a href="/index/main_examine_manage" target="main">审批问题 <b style="color:#f00;">'.count($list).'</b></a>';
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
$data ['li'] = $this->menu ['navon'];
|
|
|
|
|
@@ -1364,13 +1364,13 @@ class AdminController extends DooController {
|
|
|
function examine_add(){
|
|
|
$idKey = $this->check_params ( "id" );
|
|
|
$data=$this->adminlogic->get_examine ($idKey);
|
|
|
-
|
|
|
+
|
|
|
if(empty($data))
|
|
|
die('illegal request');
|
|
|
|
|
|
$data ['category_id']=$data['cid'];
|
|
|
$id = $this->userlogic->add_question ( $data );
|
|
|
-
|
|
|
+
|
|
|
if (empty($id)){//金钱不够 发送站内通知---暂停开发站内通知
|
|
|
//$this->send_email ( $data ['authorid'], "PAY_FORMONEY", $result, 0 );
|
|
|
/*
|
|
@@ -1385,6 +1385,22 @@ class AdminController extends DooController {
|
|
|
//$rs=$this->adminlogic->examine_add ($idKey);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 轮询查询是否有待审批数据
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ function is_exist_unapproved() {
|
|
|
+ $count = $this->adminlogic->get_unapproved_num();
|
|
|
+ $response = array(
|
|
|
+ 'error' => 0,
|
|
|
+ 'count' => $count
|
|
|
+ );
|
|
|
+
|
|
|
+ echo json_encode($response);
|
|
|
+ exit();
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 获取get或者POST值
|