Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
Project
Project
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
esf
fenzhan_zsb
Commits
ab453590
Commit
ab453590
authored
Aug 19, 2020
by
chenlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复发布房源图片不进入审核库
parent
90b16020
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
sell_model.php
new_admincp/applications/zsb/models/sell_model.php
+12
-11
No files found.
new_admincp/applications/zsb/models/sell_model.php
View file @
ab453590
...
...
@@ -153,7 +153,7 @@ class Sell_model extends Sell_base_model {
continue
;
}
//$filename = substr($v, 0, strpos($v, '?'));
$idkind
=
substr
(
$token
[
0
],
-
3
);
//
$idkind = substr( $token[0],-3);
$title
=
$pics
[
'p_title'
][
$k
]
==
'图片描述..限30字'
?
''
:
strip_tags
(
$pics
[
'p_title'
][
$k
]);
$sort
=
$pics
[
'p_sort'
][
$k
];
$flg
=
$sort
==
9
||
$sort
==
10
?
1
:
0
;
//图库选择的图片不需要再次审核。
...
...
@@ -192,24 +192,25 @@ class Sell_model extends Sell_base_model {
'flg'
=>
$flg
,
'isfrom'
=>
2
,
'isinfotype'
=>
$pics
[
'infotype'
]
);
$picid
=
$this
->
pic_model
->
insert_house_pic
(
$insert_data_house
,
$tbl
,
$house_id
);
if
(
$idkind
==
'pid'
&&
$pid
>
0
&&
!
$fromblockimg
&&
!
$flg
)
// if($idkind=='pid' && $pid > 0 && !$fromblockimg && !$flg)
if
(
!
$fromblockimg
&&
!
$flg
)
{
//审图用,获取缓存图片库中的图片信息
$parr
=
$this
->
pic_model
->
find_temp_by_id
(
$pid
);
//
$parr = $this->pic_model->find_temp_by_id($pid);
//审图用,组合图片信息
$return
[
$temp
][
'pictbl'
]
=
$this
->
pic_model
->
get_upload_table_name
(
$tbl
,
$house_id
);
$return
[
$temp
][
'picid'
]
=
$picid
;
$return
[
$temp
][
'picurl'
]
=
$filename
;
$return
[
$temp
][
'sort'
]
=
$sort
;
$return
[
$temp
][
'surface'
]
=
0
;
if
(
isset
(
$parr
[
'from_device'
])
&&
$parr
[
'from_device'
]
!=
''
)
{
$return
[
$temp
][
'from_device'
]
=
$parr
[
'from_device'
];
}
if
(
isset
(
$parr
[
'file_md5'
])
&&
$parr
[
'file_md5'
]
!=
''
)
{
$return
[
$temp
][
'file_md5'
]
=
$parr
[
'file_md5'
];
}
//
if(isset($parr['from_device']) && $parr['from_device'] != '')
//
{
//
$return[$temp]['from_device'] = $parr['from_device'];
//
}
//
if (isset($parr['file_md5']) && $parr['file_md5'] != '')
//
{
//
$return[$temp]['file_md5'] = $parr['file_md5'];
//
}
$temp
++
;
}
...
...
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