ChatController.class.php 1002 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Seller\Controller;
  3. use Admin\Model\StatisticsModel;
  4. class ChatController extends CommonController {
  5. protected function _initialize(){
  6. parent::_initialize();
  7. $this->breadcrumb1='首页';
  8. $this->breadcrumb2='首页';
  9. }
  10. public function index(){
  11. $seller_info = M('seller')->field('s_true_name,s_logo')->where( array('s_id' =>SELLERUID) )->find();
  12. $site_url_info = M('config')->field('value')->where( array('name' =>'SITE_URL') )->find();
  13. $kefu_wait_msg = M('config')->field('value')->where( array('name' =>'kefu_wait_msg') )->find();
  14. $tfhours_new_sg = M('config')->field('value')->where( array('name' =>'24hours_new_sg') )->find();
  15. $site_url = $site_url_info['value'];
  16. $seller_info['s_logo'] = $site_url.'/Uploads/image/'.$seller_info['s_logo'];
  17. $this->kefu_wait_msg = $kefu_wait_msg['value'];
  18. $this->tfhours_new_sg = $tfhours_new_sg['value'];
  19. $this->seller_info = $seller_info;
  20. $this->display();
  21. }
  22. }