企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 获取正在直播的课程列表 ``` app('rpc.course')->call('apps.mark.getMarkByCourseId',[$courseId = 1, $fType = 0]); ``` ~~~[api] apps.mark.getMarkByCourseId id=1 <<< Array { "jsonrpc":"2.0", "result":[         {             "id":20234,             "packid":0,             "courseid":21191,             "ftype":0,             "type":1,             "title":"",             "isplay":0,             "time":27,             "qid":2419163,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562558851",             "utime":"1562558851"         },         {             "id":20225,             "packid":0,             "courseid":21191,             "ftype":0,             "type":2,             "title":"",             "isplay":0,             "time":30,             "qid":0,             "gurl":"games/redPacket",             "bg":"",             "state":1,             "ctime":"1562557636",             "utime":"1562557636"         },         {             "id":20161,             "packid":0,             "courseid":21191,             "ftype":0,             "type":1,             "title":"",             "isplay":0,             "time":85,             "qid":2419339,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562229891",             "utime":"1562229891"         },         {             "id":20160,             "packid":0,             "courseid":21191,             "ftype":0,             "type":1,             "title":"",             "isplay":0,             "time":75,             "qid":2419340,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562229851",             "utime":"1562229851"         },         {             "id":20159,             "packid":0,             "courseid":21191,             "ftype":0,             "type":1,             "title":"",             "isplay":0,             "time":23,             "qid":2420069,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562229737",             "utime":"1563120763"         },         {             "id":20158,             "packid":0,             "courseid":21191,             "ftype":0,             "type":0,             "title":"题干点选题(选项长)",             "isplay":1,             "time":65,             "qid":0,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562225991",             "utime":"1562557675"         },         {             "id":20157,             "packid":0,             "courseid":21191,             "ftype":0,             "type":0,             "title":"解答题无正确答案",             "isplay":0,             "time":35,             "qid":0,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562225951",             "utime":"1562225951"         },         {             "id":20146,             "packid":0,             "courseid":21191,             "ftype":0,             "type":0,             "title":"解答题--有答案",             "isplay":1,             "time":25,             "qid":0,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562224570",             "utime":"1562557667"         },         {             "id":20145,             "packid":0,             "courseid":21191,             "ftype":0,             "type":1,             "title":"",             "isplay":0,             "time":65,             "qid":2419341,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562224399",             "utime":"1562225902"         },         {             "id":20041,             "packid":0,             "courseid":21191,             "ftype":0,             "type":1,             "title":"",             "isplay":0,             "time":45,             "qid":2419337,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562157856",             "utime":"1562157912"         },         {             "id":20040,             "packid":0,             "courseid":21191,             "ftype":0,             "type":1,             "title":"",             "isplay":0,             "time":35,             "qid":2419338,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562157799",             "utime":"1562157905"         },         {             "id":20039,             "packid":0,             "courseid":21191,             "ftype":0,             "type":1,             "title":"",             "isplay":0,             "time":25,             "qid":2419336,             "gurl":"",             "bg":"",             "state":1,             "ctime":"1562157672",             "utime":"1562157897"         },         {             "id":20034,             "packid":0,             "courseid":21191,             "ftype":0,             "type":1,             "title":"",             "isplay":0,             "time":55,             "qid":2419342,             "gurl":"",             "bg":"qimg/3e/5d2/5d284c1a6343e.png#1920\*1080",             "state":1,             "ctime":"1562147745",             "utime":"1562922011"         }     ], "id":"d468f99a747989e62469d9f48858202b" } <<< error Array ( [error] => Array ( [code] => -32602 [message] => Invalid params [data] => ) ) ~~~