riku
2022-09-06 6235a7b6d65733c3e95492a2b02bf87bd94772f5
service/lawservice.js
@@ -3,16 +3,14 @@
module.exports = {
  //查找守法动态
  getLawRegulations: function (userId, page, sceneTypeId, fun) {
  getLawRegulations: function (userId, page, condition, fun, perPage = 30) {
    let cb = {
      url: `/laws/condition/${userId}`,
      params: {
        page: page,
        per_page: 30
        per_page: perPage
      },
      data: {
        sceneTypeId: sceneTypeId
      }
      data: condition
    }
    Object.assign(cb, fun)