Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
d9a33cdc
Commit
d9a33cdc
authored
May 09, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bb84d4e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
DailyPaper.php
application/index/controller/DailyPaper.php
+7
-3
ODaily.php
application/model/ODaily.php
+1
-1
No files found.
application/index/controller/DailyPaper.php
View file @
d9a33cdc
...
...
@@ -262,12 +262,15 @@ class DailyPaper extends Basic
if
(
file_put_contents
(
$url
,
$img
))
{
$img_url
=
IMAGES_URL
.
$url
;
$m_daily
=
new
ODaily
();
$m_daily
->
updateDaily
([
"id"
=>
$daily_id
],[
"back_img"
=>
$img_url
]);
}
else
{
$update_where
[
"id"
]
=
$daily_id
;
$update_params
[
"back_img"
]
=
$img_url
;
$update_params
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$m_daily
->
updateDaily
(
$update_where
,
$update_params
);
}
else
{
return
$this
->
response
(
"101"
,
"生成图片失败"
);
}
return
$this
->
response
(
"200"
,
"success"
,
[
'img_url'
=>
$img_url
]);
return
$this
->
response
(
"200"
,
"success"
,
[
'img_url'
=>
$img_url
]);
}
}
\ No newline at end of file
application/model/ODaily.php
View file @
d9a33cdc
...
...
@@ -84,7 +84,7 @@ class ODaily extends BaseModel
{
Db
::
startTrans
();
try
{
$this
->
where
(
$where
)
->
update
(
$params
);
$this
->
db_
->
where
(
$where
)
->
update
(
$params
);
Db
::
commit
();
return
1
;
}
catch
(
\Exception
$e
)
{
...
...
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