jiankongModel.php 597 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. class agent_jiankongClassModel extends agentModel
  3. {
  4. public function initModel()
  5. {
  6. $this->settable('flow_bill');
  7. }
  8. protected function agentdata($uid, $lx)
  9. {
  10. $rows = m('flowbill')->getrecord($uid, $lx, $this->page, $this->limit);
  11. $modearr= array();
  12. if($this->loadci==1){
  13. $modeids = '0';
  14. $rows1 = m('view')->getjilu($uid);
  15. foreach($rows1 as $k1=>$rs1){
  16. $modeids.=','.$rs1['modeid'].'';
  17. }
  18. $modearr = m('mode')->getmodemyarr(0,'and `id` in('.$modeids.')');
  19. }
  20. return array(
  21. 'rows' =>$rows,
  22. 'modearr' =>$modearr,
  23. );
  24. }
  25. }
粤ICP备19079148号