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
5f6a26b2
Commit
5f6a26b2
authored
Aug 14, 2020
by
liuqiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片不以http开头 跳过
parent
26b384f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sell_model.php
new_admincp/applications/zsb/models/sell_model.php
+5
-0
No files found.
new_admincp/applications/zsb/models/sell_model.php
View file @
5f6a26b2
...
@@ -147,6 +147,11 @@ class Sell_model extends Sell_base_model {
...
@@ -147,6 +147,11 @@ class Sell_model extends Sell_base_model {
$token
=
explode
(
"="
,
$v
);
$token
=
explode
(
"="
,
$v
);
$pid
=
intval
(
$token
[
1
]);
$pid
=
intval
(
$token
[
1
]);
$filename
=
$v
;
$filename
=
$v
;
// 图片不以http开头 跳过
if
(
strpos
(
$v
,
'http'
)
!==
0
)
{
continue
;
}
//$filename = substr($v, 0, strpos($v, '?'));
//$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
]);
$title
=
$pics
[
'p_title'
][
$k
]
==
'图片描述..限30字'
?
''
:
strip_tags
(
$pics
[
'p_title'
][
$k
]);
...
...
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