聯(lián)系官方銷售客服
1835022288
028-61286886
單頁欄目,自定義欄目字段下添加的多文件字段,如何轉換得到URL地址
回調(diào)代碼
public function category_show($data) { $rt = [ 'xcxpt' => dr_share_cat_value($data['catid'], "xcxpt"), ]; return $rt; }
返回數(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": "" } ] } }
請問這種多圖字段,回調(diào)函數(shù)應該怎么寫才能把數(shù)字(file)轉換成圖片地址
不要復制代碼,先理解一下為什么這么寫
回復@官方插件實習技術 沒敢直接復制,厲害。學習了