Exemple #1
0
 /**
  * 获取所有渠道
  *
  * @return array
  */
 public static function getAllSpm()
 {
     //$spmT = new FTable('spm');
     //$spmList = $spmT->select();
     $spmList = Service_Common::getAllSpm();
     $item = array("c_uid" => "2", "c_sid" => "888", "c_name" => "缺省", "c_s_name" => "缺省");
     array_push($spmList, $item);
     return $spmList;
 }
Exemple #2
0
 public function shenhe_cheAction()
 {
     // global $_F;
     // $_F["debug"] = true;
     $uid = FRequest::getInt('uid');
     $params = array("uid" => $uid);
     $params = json_encode($params);
     $url = FConfig::get('global.service_mumu_url') . "/user/UnBanUser";
     $params = Service_Common::post($url, $params);
     $params = json_decode($params);
     if ($params->status == "ok") {
         // $this->showMessage("撤销成功",$messageType = 'success');
         // echo( "<script LANGUAGE='javascript'>zhuangtai_che('stat".$uid."');</script>");
         echo "ok";
     } else {
         //  $this->showMessage("撤销失败",$messageType = 'success');
     }
     return;
 }
Exemple #3
0
 public function shenheAction()
 {
     //global $_F;
     // $_F["debug"] = true;
     $id = FRequest::getInt('id');
     $picslevel = FRequest::getPostInt('picslevel');
     $topic_table = new FTable("topic");
     $topic_table->where(array('id' => $id))->update(array("picslevel" => $picslevel));
     $params = array("tid" => "200");
     $params = json_encode($params);
     $url = FConfig::get('global.service_mumu_url') . "/topic/ClearCache";
     $params = Service_Common::post($url, $params);
     $params = json_decode($params);
     if ($params->status == "ok") {
         $this->showMessage("审核成功", $messageType = 'success');
     } else {
         $this->showMessage("审核失败", $messageType = 'success');
     }
     return;
 }
Exemple #4
0
 /**
  * 递归将数组中的值进行encode
  */
 public static function array_url_encode($data, $filter = null)
 {
     foreach ($data as $key => $val) {
         if ($filter) {
             $bool = false;
             foreach ($filter as $f_key) {
                 if ($key == $f_key) {
                     $bool = true;
                     break;
                 }
             }
             if ($bool) {
                 $data[$key] = is_array($val) ? Service_Common::array_url_encode($val, $filter) : rawurlencode($val);
             } else {
                 $data[$key] = is_array($val) ? Service_Common::array_url_encode($val, $filter) : $val;
             }
         } else {
             $data[$key] = is_array($val) ? Service_Common::array_url_encode($val, $filter) : rawurlencode($val);
         }
     }
     return $data;
 }
Exemple #5
0
 public function shenheAction()
 {
     // global $_F;
     // $_F["debug"] = true;
     $size = FRequest::getPostInt('size');
     $list = array();
     /*
     for($j=1;$j <$size;$j++) {
         $list[$j-1] =FRequest::getPostString('avatarlevel'.$j);
     }
     $list[$size-1] = FRequest::getPostString('avatarlevel'.$size);
     */
     $list[0] = FRequest::getPostString('avatarlevel' . $size);
     $params = array("list" => $list);
     $params = json_encode($params);
     //$this->showMessage($params,$messageType = 'success');
     // exit;
     $url = FConfig::get('global.service_mumu_url') . "/user/AdminSetAvatarStat";
     $params = Service_Common::post($url, $params);
     $params = json_decode($params);
     if ($params->status == "ok") {
         //$this->showMessage("审核成功",$messageType = 'success');
     } else {
         $this->showMessage("审核失败", $messageType = 'success');
     }
     return;
 }
Exemple #6
0
 public function shenheAction()
 {
     global $_F;
     // $_F["debug"] = true;
     $size = FRequest::getPostInt('size');
     $list = array();
     /*
     for($j=1;$j <$size;$j++) {
         $list[$j-1] =FRequest::getPostString('avatarlevel'.$j);
     }
     $list[$size-1] = FRequest::getPostString('avatarlevel'.$size);
     */
     $list[0] = FRequest::getPostString('avatarlevel' . $size);
     $params = array("list" => $list);
     $query = explode(",", $list[0]);
     $query = $query[0];
     $params_uid = array("uid" => $query);
     $params = json_encode($params);
     //$this->showMessage($params,$messageType = 'success');
     // exit;
     $url = FConfig::get('global.service_mumu_url') . "/user/AdminSetAvatarStat";
     $params = Service_Common::post($url, $params);
     /*$url_rztz =  FConfig::get('global.service_mumu_url')."/s/user/ICertifyAvatar";
       $params_rztz=Service_Common::post($url_rztz,json_encode($params_uid));*/
     $url_rztz = FConfig::get('global.service_mumu_url') . "/s/user/ICertifyAvatar";
     $cookie = "sid=" . FSession::get('sid') . ";uid=" . FSession::get('user_id') . ";key=" . FSession::get('sid');
     $params_rztz = FHttp::doPost($url_rztz, $params_uid, $cookie);
     $params = json_decode($params);
     /* $url_rztz =  FConfig::get('global.service_mumu_url')."/s/user/ICertifyAvatar";
        $params_rztz=Service_Common::post($url_rztz,$params_uid);*/
     if ($params->status == "ok") {
         //$this->showMessage("审核成功",$messageType = 'success');
     } else {
         $this->showMessage("审核失败", $messageType = 'success');
     }
     return;
 }
Exemple #7
0
 function listAction()
 {
     //global $_F;
     //$_F["debug"] = true;
     $uid = CommonUtil::getDefStr(FRequest::getPostString('uid'), "");
     $tj25 = json_decode(FRequest::getPostString('tj25'));
     $tj26 = json_decode(FRequest::getPostString('tj26'));
     $tj27 = json_decode(FRequest::getPostString('tj27'));
     $tj28 = json_decode(FRequest::getPostString('tj28'));
     $tj30 = json_decode(FRequest::getPostString('tj30'));
     $tj31 = json_decode(FRequest::getPostString('tj31'));
     $tj32 = json_decode(FRequest::getPostString('tj32'));
     $stats_date = FRequest::getString('stats_date');
     if (!$stats_date) {
         $this->showMessage("请输入统计日期", error);
         return;
     }
     $url = FConfig::get('global.service_mumu_url') . "/user/AdminTjInfo";
     /* $params = array("uid"=>$uid,"date"=>$stats_date);
             $params=Service_Common::post($url,json_encode($params));
             $params=json_decode($params);
     
             if($params->status=="ok"){
                $this->assign("tj",$params->res);
             } else{
                 $this->showMessage("查找失败",$messageType = 'success');
                 return;
             }*/
     if (!$uid || $uid == 25) {
         $params25 = array("uid" => 25, "date" => $stats_date);
         $params25 = Service_Common::post($url, json_encode($params25));
         $params25 = json_decode($params25);
         if ($params25->status == "ok") {
             $tj25 = $params25->res;
         }
     }
     if (!$uid || $uid == 26) {
         $params26 = array("uid" => 26, "date" => $stats_date);
         $params26 = Service_Common::post($url, json_encode($params26));
         $params26 = json_decode($params26);
         if ($params26->status == "ok") {
             $tj26 = $params26->res;
         }
     }
     if (!$uid || $uid == 27) {
         $params27 = array("uid" => 27, "date" => $stats_date);
         $params27 = Service_Common::post($url, json_encode($params27));
         $params27 = json_decode($params27);
         if ($params27->status == "ok") {
             $tj27 = $params27->res;
         }
     }
     if (!$uid || $uid == 28) {
         $params28 = array("uid" => 28, "date" => $stats_date);
         $params28 = Service_Common::post($url, json_encode($params28));
         $params28 = json_decode($params28);
         if ($params28->status == "ok") {
             $tj28 = $params28->res;
         }
     }
     if (!$uid || $uid == 30) {
         $params30 = array("uid" => 30, "date" => $stats_date);
         $params30 = Service_Common::post($url, json_encode($params30));
         $params30 = json_decode($params30);
         if ($params30->status == "ok") {
             $tj30 = $params30->res;
         }
     }
     if (!$uid || $uid == 31) {
         $params31 = array("uid" => 31, "date" => $stats_date);
         $params31 = Service_Common::post($url, json_encode($params31));
         $params31 = json_decode($params31);
         if ($params31->status == "ok") {
             $tj31 = $params31->res;
         }
     }
     if (!$uid || $uid == 32) {
         $params32 = array("uid" => 32, "date" => $stats_date);
         $params32 = Service_Common::post($url, json_encode($params32));
         $params32 = json_decode($params32);
         if ($params32->status == "ok") {
             $tj32 = $params32->res;
         }
     }
     $this->assign("tj25", $tj25);
     $this->assign("tj26", $tj26);
     $this->assign("tj27", $tj27);
     $this->assign("tj28", $tj28);
     $this->assign("tj30", $tj30);
     $this->assign("tj31", $tj31);
     $this->assign("tj32", $tj32);
     $this->assign("tj25_jd", json_encode($tj25));
     $this->assign("tj26_jd", json_encode($tj26));
     $this->assign("tj27_jd", json_encode($tj27));
     $this->assign("tj28_jd", json_encode($tj28));
     $this->assign("tj30_jd", json_encode($tj30));
     $this->assign("tj31_jd", json_encode($tj31));
     $this->assign("tj32_jd", json_encode($tj32));
     $this->assign("uid", $uid);
     $this->assign("stats_date", $stats_date);
     $this->display('admin/uidtj_list');
 }
Exemple #8
0
 /**
  * 用户资料复审
  */
 function verifyUserSecondAction()
 {
     $id = FRequest::getInt("id");
     $uid = FRequest::getInt("uid");
     $status = FRequest::getInt("status");
     // $reason = FRequest::getString("reason");
     if (CommonUtil::parmIsEmpty($uid) || CommonUtil::parmIsEmpty($status) || CommonUtil::parmIsEmpty($id)) {
         FResponse::output(CommonUtil::GetDefRes(201, "参数错误"));
         return;
     }
     //请求服务端接口
     $url = FConfig::get('global.service_mumu_url') . "/s/user/IUserInfoVerify";
     $res = Service_Common::secPost($url, array("id" => $id, "uid" => $uid, "level" => $status));
     FResponse::output($res);
 }