联系官方销售客服
1835022288
028-61286886
$return = []; // 返回数据 $uid = '2'; $cache = '-1'; $data = \Phpcmf\Service::L('cache')->get_data('member-info-'.$uid); if (!$data) { $data = \Phpcmf\Service::M('member')->get_member($uid); SYS_CACHE && \Phpcmf\Service::L('cache')->set_data('member-info-'.$uid, $data, $cache > 0 ? $cache : SYS_CACHE_SHOW * 3600); } if ($data) { foreach ($data as $r) { $return[] = [ 'id' => $r['id'], 'username' => $r['username'], ]; } }
api接口如何返回会员信息。。。这样不正常。。