ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` $params = [ 'uid' => 100,// 用户id 'packid' => 1,//课程包id 'courseid' => 1,//课时id 'group' => 1,//第几组试题 ]; app('rpc.record')->call('practice.user.game.record',[$params]); ``` ~~~[api] post:practice.user.game.record uid=0#用户id packid=0#课程包id courseid=0#课时id group=0#第几组试题 <<< Array ( [result] => Array ( [data] => Array ( [id] => 7, [uid] => 27,//用户id [packid] => 25,//课程包id [courseid] => '',//课时id [group] => '',//第几组试题 [credit] => '',//学习获得小红花 [qnums] => '',//学习答题总数 [rnums] => '',//'学习答对题总数 [qtimes] => '',//学习答题时长 [scores] => '',//得分 [tdata] => '',//答题数据 [ctime] => 0, [utime] => 0 ) [total] => 1 ) ) <<< error Array ( [error] => Array ( [code] => -32602 [message] => Invalid params [data] => ) ) ~~~