🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` $params = [ 'where' => [ 'state' => 1,//or ['字段名','like','xxxxx'] ], 'page_size' => 100,// 每页展示 'page' => 1,页码 'columns' => ['*'] ]; app('rpc.record')->call('town.goods.get.list',[$params]); ``` ~~~[api] post:town.goods.get.list page=1#页码 page_size=10#步长 columns=['*']#字段 where=[]#筛选条件 <<< Array ( [result] => Array ( [data] => Array ( [0] => Array ( [id] => 10012 [fid] => 3192 //对象ID 目前支持道具|皮肤|紫水晶 [credits] => 2000 // 兑换需要小红花数量 [tid] => 3 // 1建筑 2精灵 3领地 4-学币 5场景 99皮肤 100紫水晶 [onpic] =>'image/2019/03/15/160940_5c8b5dc489aa1.png' //默认封面图 未处理 ) ) [total] => 6//总数 ) ) <<< error Array ( [error] => Array ( [code] => -32602 [message] => Invalid params [data] => ) ) ~~~