迅睿CMS框架是一款PHP8高性能·簡(jiǎn)單易用的CMS開(kāi)源開(kāi)發(fā)框架,基于MIT開(kāi)源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開(kāi)源的產(chǎn)品,以萬(wàn)端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號(hào)、小程序、APP客戶(hù)端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷(xiāo)售客服
1835022288
028-61286886
請(qǐng)教一下,回調(diào)方法自定義里面,單選按鈕字段 Select 怎么獲取名稱(chēng)?
回調(diào)方法的定義http://www.zbshanke.com/doc/351.html
需要把請(qǐng)求接口的地址發(fā)一下
/index.php?appid=1&appsecret=xxxxx&s=news&c=show&id=9284
需要提供appsecret嗎?
回復(fù)@官方實(shí)習(xí)技術(shù)
/index.php?appid=1&appsecret=xxxxx&s=news&c=show&id=9284&&api_call_function=my_test
public function my_test($data) { $select = dr_field_options(這里填寫(xiě)select字段的ID號(hào)); $select_name = $select[$data['select字段英文名稱(chēng)']]; $rt = [ 'title' => $data['title'], 'id' => $data['id'], 'thumb' => dr_thumb($data['thumb'], 200, 200), 'updatetime' => dr_date($data['_updatetime'], 'Y-m-d H:i:s'), 'select_name' => $select_name, ]; return $rt; }
需要把請(qǐng)求接口的地址發(fā)一下
/index.php?appid=1&appsecret=xxxxx&s=news&c=show&id=9284
需要提供appsecret嗎?
回復(fù)@官方實(shí)習(xí)技術(shù)
/index.php?appid=1&appsecret=xxxxx&s=news&c=show&id=9284&&api_call_function=my_test