Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac-quanmin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HTML5-李恒逸
sunac-quanmin
Commits
f2480631
Commit
f2480631
authored
Jun 21, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改历史重复记录
parent
f28ca805
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
myself.php
html/application/controllers/distributor/myself.php
+3
-2
customer_building_log_model.php
html/application/models/customer_building_log_model.php
+9
-9
No files found.
html/application/controllers/distributor/myself.php
View file @
f2480631
...
...
@@ -151,10 +151,12 @@ class Myself extends CI_Controller{
'user_mobile'
=>
$post
[
'mobile'
],
'user_type'
=>
6
);
$get_user
=
$this
->
user
->
get_use_mobile
(
$use
);
$where
=
array
(
'id'
=>
$this
->
user_id
);
if
(
$get_user
){
if
(
$get_user
&&
$get_user
[
'check_status'
]
!=
4
){
$result
=
array
(
'errcode'
=>
42123
,
'errmsg'
=>
'输入手机号码已存在'
);
echo
json_encode
(
$result
);
return
;
...
...
@@ -162,7 +164,6 @@ class Myself extends CI_Controller{
$check
=
$this
->
user
->
update
(
$where
,
$cur_info
);
if
(
$check
){
$this
->
session
->
sess_destroy
();
//get 获取请求登录页
...
...
html/application/models/customer_building_log_model.php
View file @
f2480631
...
...
@@ -127,15 +127,15 @@ class Customer_building_log_model extends MY_Model{
if
(
$query
->
num_rows
()
>
0
)
{
$qery
=
$query
->
result_array
();
//
$rAr=array();
//
for($i=0;$i<count($qery);$i++)
//
{
//
if(!isset($rAr[$qery[$i]['recommend_status']]))
//
{
//
$rAr[$qery[$i]['recommend_status']]=$qery[$i];
//
}
//
}
//
$qery=array_values($rAr);
$rAr
=
array
();
for
(
$i
=
0
;
$i
<
count
(
$qery
);
$i
++
)
{
if
(
!
isset
(
$rAr
[
$qery
[
$i
][
'recommend_status'
]]))
{
$rAr
[
$qery
[
$i
][
'recommend_status'
]]
=
$qery
[
$i
];
}
}
$qery
=
array_values
(
$rAr
);
return
$qery
;
//$query->result_array();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment