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