This commit is contained in:
weiz 2023-10-28 17:18:43 +08:00
parent 26b17914e7
commit 1b07c909b1
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@
$curl_result['data']['kind'] = $fishKind;
$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)){
$curl_result['data']['pic_detail'] = $pic;
$curl_result['data']['pic_detail']['create_time'] = date('Y-m-d H:i:s',$pic['create_time']);