//任意页面调取会员商铺信息 function get_com_item($userid, $key = '', $cache = '') { if(!$userid || !$key) return ''; $r = DB::get_one("SELECT item_value FROM ".DT_PRE."company_setting WHERE userid=$userid AND item_key='$key'", $cache); return $r ? $r['item_value'] : ''; }列表调取时用
{php $sninfo = userinfo($t[username]);} {get_com_item($xhuinfo[userid], 'logo')}
{php $sninfo = userinfo($username);} {get_com_item($xhuinfo[userid], 'logo')}
//任意页面调取会员商铺信息8.0老版本 function get_com_item($userid, $key = '', $cache = '') { if(!$userid || !$key) return ''; $r = $db->get_one("SELECT item_value FROM ".DT_PRE."company_setting WHERE userid=$userid AND item_key='$key'", $cache); return $r ? $r['item_value'] : ''; }两个参数写法对比
2022-11-30172℃
2024-02-0549℃
2023-04-2036℃
2020-12-1129℃
2023-04-0821℃
2023-03-1818℃
2023-12-1416℃
2023-03-2614℃
2023-04-1914℃