Commit 8ff37810 by root

修改预上线配置问题

parent d8e3742b
This source diff could not be displayed because it is too large. You can view the blob instead.
a:3:{s:4:"time";i:1497607075;s:3:"ttl";i:86400;s:4:"data";i:1497607073;} a:3:{s:4:"time";i:1497927487;s:3:"ttl";i:86400;s:4:"data";i:1497927485;}
\ No newline at end of file \ No newline at end of file
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
| |
*/ */
//$config['base_url'] = 'http://eas.sunac.com.cn:1918/'; //$config['base_url'] = 'http://eas.sunac.com.cn:1918/';
$config['base_url'] = '/www/html/index.php'; $config['base_url'] = '/test/html/index.php';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
......
...@@ -35,7 +35,7 @@ define('FOPEN_WRITE_CREATE', 'ab'); ...@@ -35,7 +35,7 @@ define('FOPEN_WRITE_CREATE', 'ab');
define('FOPEN_READ_WRITE_CREATE', 'a+b'); define('FOPEN_READ_WRITE_CREATE', 'a+b');
define('FOPEN_WRITE_CREATE_STRICT', 'xb'); define('FOPEN_WRITE_CREATE_STRICT', 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b'); define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
define('APPLICATION_PATH', '/www/html');//项目同一路径定义 define('APPLICATION_PATH', '/test/html');//项目同一路径定义
define('SQL_DEBUG', 0);//是否开启sql日志 sql.txt define('SQL_DEBUG', 0);//是否开启sql日志 sql.txt
/* End of file constants.php */ /* End of file constants.php */
/* Location: ./application/config/constants.php */ /* Location: ./application/config/constants.php */
...@@ -48,12 +48,12 @@ ...@@ -48,12 +48,12 @@
$active_group = 'default'; $active_group = 'default';
$active_record = TRUE; $active_record = TRUE;
$db['default']['hostname'] = '192.168.2.173'; $db['default']['hostname'] = '192.168.2.107';
//$db['default']['hostname'] = 'localhost'; //$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root'; $db['default']['username'] = 'fenxiao';
$db['default']['password'] = '123456'; $db['default']['password'] = 'sunac2010!';
//$db['default']['password'] = ''; //$db['default']['password'] = '';
$db['default']['database'] = 'db_rongchuang_test'; $db['default']['database'] = 'db_rongchuang';
$db['default']['dbdriver'] = 'mysql'; $db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = ''; $db['default']['dbprefix'] = '';
$db['default']['pconnect'] = FALSE; $db['default']['pconnect'] = FALSE;
......
...@@ -6,15 +6,15 @@ ...@@ -6,15 +6,15 @@
*/ */
$config ['rpc'] = array( $config ['rpc'] = array(
'api' => array( 'api' => array(
'accounts' => 'http://eas.sunac.com.cn:8191/propertymobile/getAccounts.action', 'accounts' => 'http://60.29.36.2:8191/propertymobile/getAccounts.action',
'buildings' => 'http://eas.sunac.com.cn:8191/propertymobile/getProjects.action', 'buildings' => 'http://60.29.36.2:8191/propertymobile/getProjects.action',
'get_staff_by_mobile' => 'http://eas.sunac.com.cn:8191/propertymobile/getAccountByPhone.action', 'get_staff_by_mobile' => 'http://60.29.36.2:8191/propertymobile/getAccountByPhone.action',
'get_owner_by_phone' => 'http://eas.sunac.com.cn:8191/propertymobile/getMuserByPhone.action', 'get_owner_by_phone' => 'http://60.29.36.2:8191/propertymobile/getMuserByPhone.action',
'check_staff_account' => 'http://eas.sunac.com.cn:8191/propertymobile/checkAccount.action', 'check_staff_account' => 'http://60.29.36.2:8191/propertymobile/checkAccount.action',
'is_customer' => 'http://eas.sunac.com.cn:8191/propertymobile/isCustomer.action', 'is_customer' => 'http://60.29.36.2:8191/propertymobile/isCustomer.action',
'get_customer_room' => 'http://eas.sunac.com.cn:8191/propertymobile/getCustomerRoom.action', 'get_customer_room' => 'http://60.29.36.2:8191/propertymobile/getCustomerRoom.action',
'get_customer_status' => 'http://eas.sunac.com.cn:8191/propertymobile/getCustomerStatus.action', 'get_customer_status' => 'http://60.29.36.2:8191/propertymobile/getCustomerStatus.action',
'send_sms' => 'http://eas.sunac.com.cn:8191/propertymobile/sendMsg.action' 'send_sms' => 'http://60.29.36.2:8191/propertymobile/sendMsg.action'
), ),
'param' => array( 'param' => array(
'head' => array( 'head' => array(
......
...@@ -31,6 +31,7 @@ class Building extends CI_Controller { ...@@ -31,6 +31,7 @@ class Building extends CI_Controller {
$distributor_ins=$this->distributor->get(array('uniqid_id'=>$this->uniqid_id)); $distributor_ins=$this->distributor->get(array('uniqid_id'=>$this->uniqid_id));
$buildings=$this->bdrelation->get_all_building(array('D.id'=>$distributor_ins['id'],'R.is_deleted'=>0),1,10); $buildings=$this->bdrelation->get_all_building(array('D.id'=>$distributor_ins['id'],'R.is_deleted'=>0),1,10);
$this->data['buildings']=$buildings; $this->data['buildings']=$buildings;
$datestring="%Y-%m-%d"; $datestring="%Y-%m-%d";
$dataformat="%Y-%m-%d %h:%i"; $dataformat="%Y-%m-%d %h:%i";
$this->data['datestring']=$datestring; $this->data['datestring']=$datestring;
......
...@@ -224,6 +224,8 @@ class Sign extends CI_Controller{ ...@@ -224,6 +224,8 @@ class Sign extends CI_Controller{
//校验职员 //校验职员
$staff_data = rpc('get_staff_by_mobile', $param); $staff_data = rpc('get_staff_by_mobile', $param);
$is_staff_point = 0; $is_staff_point = 0;
if(!empty($staff_data) || $staff_data['head']['rspCode'] == 0) if(!empty($staff_data) || $staff_data['head']['rspCode'] == 0)
{ {
...@@ -242,12 +244,13 @@ class Sign extends CI_Controller{ ...@@ -242,12 +244,13 @@ class Sign extends CI_Controller{
//校验业主 //校验业主
$owner_data = rpc('get_owner_by_phone', $param); $owner_data = rpc('get_owner_by_phone', $param);
if(!empty($owner_data) || $owner_data['head']['rspCode'] == 0) if(!empty($owner_data) || $owner_data['head']['rspCode'] == 0)
{ {
$owner_data['body'] = isset($owner_data['body'][0]) ? $owner_data['body'][0] : array(); $owner_data['body'] = isset($owner_data['body'][0]) ? $owner_data['body'][0] : array();
if(isset($owner_data['body']['id']) && !empty($owner_data['body']['id'])) if(isset($owner_data['body']['id']) && !empty($owner_data['body']['id']))
{ {
$baisc_data['true_name'] = $staff_data['body']['owner_name']; $baisc_data['true_name'] = $owner_data['body']['name'];
$extra_data['copartner_type'] = 3; $extra_data['copartner_type'] = 3;
$is_staff_point = 1; $is_staff_point = 1;
} }
......
...@@ -116,9 +116,12 @@ class Building_distributor_model extends MY_Model{ ...@@ -116,9 +116,12 @@ class Building_distributor_model extends MY_Model{
$this->db->order_by('R.id','desc'); $this->db->order_by('R.id','desc');
$query = $this->db->get(null, $page_size, ($page-1) * $page_size); $query = $this->db->get(null, $page_size, ($page-1) * $page_size);
if($query->num_rows() > 0) if($query->num_rows() > 0)
{ {
$return = $query->result_array(); $return = $query->result_array();
return $return; return $return;
} }
} }
......
File mode changed from 100644 to 100755
...@@ -291,6 +291,7 @@ ...@@ -291,6 +291,7 @@
</td> </td>
<!--<td></td>--> <!--<td></td>-->
<td> <td>
<?php if($customer['expired']==0){ ?>
<?php if ($customer['recommend_status'] == 0) { ?> <?php if ($customer['recommend_status'] == 0) { ?>
<?php if ($customer['is_valid'] != 0) { ?> <?php if ($customer['is_valid'] != 0) { ?>
<?php if ($customer['manager_name'] || $customer['sale_name'] || $customer['assign_time']) { ?> <?php if ($customer['manager_name'] || $customer['sale_name'] || $customer['assign_time']) { ?>
...@@ -300,6 +301,7 @@ ...@@ -300,6 +301,7 @@
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>
<?php } ?>
<div class="userList"> <div class="userList">
<?php <?php
if (isset($customer['userList']) && !empty($customer['userList'])) { if (isset($customer['userList']) && !empty($customer['userList'])) {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<ul> <ul>
<?php foreach($buildings as $val): ?> <?php foreach($buildings as $val): ?>
<li> <li>
<!--<div class="lou-img left"> <!-- <div class="lou-img left">
<img src="<?php echo APPLICATION_PATH ?><?php echo (isset($val['building_img']) && $val['building_img']!='')? $val['building_img']:'/assets/css/images/lou-img.png'?>"> <img src="<?php echo APPLICATION_PATH ?><?php echo (isset($val['building_img']) && $val['building_img']!='')? $val['building_img']:'/assets/css/images/lou-img.png'?>">
</div>--> </div>-->
<div class="lou-detail right" data-key="<?php echo $val['bid']?>"> <div class="lou-detail right" data-key="<?php echo $val['bid']?>">
......
<?php <?php
date_default_timezone_set('PRC');
ob_start(); ob_start();
/* /*
*--------------------------------------------------------------- *---------------------------------------------------------------
......
...@@ -271,7 +271,7 @@ class CI_DB_driver { ...@@ -271,7 +271,7 @@ class CI_DB_driver {
{ {
$sql = $this->compile_binds($sql, $binds); $sql = $this->compile_binds($sql, $binds);
} }
//echo $sql; // echo $sql;
// Is query caching enabled? If the query is a "read type" // Is query caching enabled? If the query is a "read type"
// we will load the caching class and return the previously // we will load the caching class and return the previously
// cached query if it exists // cached query if it exists
......
...@@ -231,7 +231,7 @@ if ( ! function_exists('create_captcha')) ...@@ -231,7 +231,7 @@ if ( ! function_exists('create_captcha'))
$img_name = $now.'.jpg'; $img_name = $now.'.jpg';
ImageJPEG($im, $img_path.$img_name); imagepng($im, $img_path.$img_name);
$img = "<img src=\"$img_url$img_name\" width=\"$img_width\" height=\"$img_height\" style=\"border:0;\" alt=\" \" />"; $img = "<img src=\"$img_url$img_name\" width=\"$img_width\" height=\"$img_height\" style=\"border:0;\" alt=\" \" />";
......
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