Commit 26f6e8b0 by html5-李恒逸

Bug fixs

parent 7bb99c2c
......@@ -1109,8 +1109,9 @@ class Report extends CI_Controller
{
$userInfo = $this->relate->get(array('distributor_id' => $distributor_id, 'building_id' => $building_id));
if (!$userInfo)
{
if ($userInfo){
alert_redirect(site_url('admin/report/distributors'), $this->lang->line('err_43003'));
}else{
$userId = $userInfo['user_id'];
$data['user_id'] = $manager_id;
......
......@@ -72,7 +72,8 @@ class Index extends CI_Controller{
//获取总条数
$count= $con ? $this->channel->get_all_count($where) : 0;
$buildings = $con ? $this->channel_building->get_all_building($where) : array();
$channels=$this->manager->get(array('manager_name'=>$username));
$buildings = $con ? $this->channel_building->get_all_building('B.id in ('.$channels['building_id'].')') : array();
$building_list = array();
/*$buildings = array (
......
......@@ -25,7 +25,7 @@ $lang["err_42003"] = "页面参数不合法";
$lang["err_42004"] = "POST数据参数不合法";
$lang["err_42005"] = "页面参数不合法";
$lang["err_42006"] = "参数错误(invalid parameter)";
$lang["err_43003"] = "该分销商已被绑定到该项目"
$lang["err_42100"] = "具体参数错误";
$lang["err_42110"] = "邮箱错误";
......
<?php
date_default_timezone_set('PRC');
ob_start();
ini_set('memory_limit', '-1');
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment