upate
This commit is contained in:
parent
26b17914e7
commit
1b07c909b1
|
@ -43,7 +43,7 @@
|
||||||
$curl_result['data']['kind'] = $fishKind;
|
$curl_result['data']['kind'] = $fishKind;
|
||||||
$curl_result['data']['breed'] = $fiskBreed;
|
$curl_result['data']['breed'] = $fiskBreed;
|
||||||
//获取去最新的图片
|
//获取去最新的图片
|
||||||
$pic = Db::name('farmer_pond_pic')->field('pic,create_time')->where('pond_id',$params['pond_id'])->findOrEmpty();
|
$pic = Db::name('farmer_pond_pic')->field('pic,create_time')->where('pond_id',$params['pond_id'])->order('id desc')->findOrEmpty();
|
||||||
if(!empty($pic)){
|
if(!empty($pic)){
|
||||||
$curl_result['data']['pic_detail'] = $pic;
|
$curl_result['data']['pic_detail'] = $pic;
|
||||||
$curl_result['data']['pic_detail']['create_time'] = date('Y-m-d H:i:s',$pic['create_time']);
|
$curl_result['data']['pic_detail']['create_time'] = date('Y-m-d H:i:s',$pic['create_time']);
|
||||||
|
|
Loading…
Reference in New Issue