聯(lián)系官方銷售客服
1835022288
028-61286886
單頁欄目,自定義欄目字段下添加的多文件字段,如何轉(zhuǎn)換得到URL地址
回調(diào)代碼
public function category_show($data) { $rt = [ 'xcxpt' => dr_share_cat_value($data['catid'], "xcxpt"), ]; return $rt; }
返回?cái)?shù)據(jù):
{ "code": 1, "msg": "view", "data": { "xcxpt": [ { "file": "18", "title": "57f1a9381d4b7", "description": "" }, { "file": "19", "title": "57f1a91443710", "description": "" }, { "file": "20", "title": "57f1a941d2c80", "description": "" }, { "file": "21", "title": "57f1a9606d614", "description": "" } ] } }
請(qǐng)問這種多圖字段,回調(diào)函數(shù)應(yīng)該怎么寫才能把數(shù)字(file)轉(zhuǎn)換成圖片地址
不要復(fù)制代碼,先理解一下為什么這么寫
回復(fù)@官方插件實(shí)習(xí)技術(shù) 沒敢直接復(fù)制,厲害。學(xué)習(xí)了