agentAction.php 786 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. class agentClassAction extends ActionNot{
  3. public function initAction()
  4. {
  5. $this->mweblogin(0, true);
  6. }
  7. public function defaultAction()
  8. {
  9. $num = $this->get('num');
  10. $reim= m('reim');
  11. $arr = $reim->getagent(0, "and `num`='$num'");
  12. if(!$arr)exit('应用['.$num.']不存在');
  13. $rs = $arr[0];
  14. $this->title = $rs['name'];
  15. $yyurl = ''.P.'/we/ying/yingyong/'.$num.'.html';
  16. if(!file_exists($yyurl))$yyurl='';
  17. $yyurljs = ''.P.'/we/ying/yingyong/'.$num.'.js';
  18. if(!file_exists($yyurljs))$yyurljs='';
  19. $this->assign('arr', $rs);
  20. $this->assign('openfrom', $this->get('openfrom'));
  21. $this->assign('yyurl', $yyurl);
  22. $this->assign('yyurljs', $yyurljs);
  23. $gid = $rs['id'];
  24. $reim->setallyd('agent', $this->adminid, $gid);
  25. }
  26. }
粤ICP备19079148号