• 学习鸿蒙基础(12)


    目录

    一、网络json-server配置

    (1)然后输入:

    (2)显示下载成功。但是输入json-server -v的时候。报错。

    (3)此时卸载默认的json-server

    (4)安装和nodejs匹配版本的json-server

    (5)再次输入 json-server -v的时候显示正常了。

    ​编辑

     (6)此时,随便新建一个文件夹。然后cmd输入以下指令:

     (7)会在该文件夹下新建一个db.json的文件。

     (8)同时在浏览器上访问的时候,可以通过以下路径打开这个json文件。 

     二、数据请求

     (1)用本机的ip地址替换localhost

     (2)http -代码示例:

     (3)ohpm安装

     (4)axios -代码示例

     (5)db.json测试源文件

     (6)db1.json 测试源文件



    一、网络json-server配置

    网络请求的时候,先安装json-server工具进行网络环境模拟。安装的时候。遇到了错误。一直报错。题主已经在微信小程序使用的时候安装了nodejs环境。可以直接进行npm操作。这里不再演示nodejs的安装方式。只进行json-server的安装步骤展示。

    用管理员的模式打开cmd。

    (1)然后输入:
    npm install -g json-server
    (2)显示下载成功。但是输入json-server -v的时候。报错。

     是因为我安装的nodejs版本和默认的json-server 的版本不兼容导致的。

    我的nodejs版本是:

    1. C:\WINDOWS\system32>node -v
    2. v14.15.1
    (3)此时卸载默认的json-server
    npm uninstall -g json-server
    (4)安装和nodejs匹配版本的json-server
    npm install -g json-server@0.17.3
    (5)再次输入 json-server -v的时候显示正常了。
     (6)此时,随便新建一个文件夹。然后cmd输入以下指令:
    json-server --watch db.json
     (7)会在该文件夹下新建一个db.json的文件。

    (8)同时在浏览器上访问的时候,可以通过以下路径打开这个json文件。 

     

     二、数据请求
    (1)用本机的ip地址替换localhost
    1. G:\HuaWei\code>json-server .\db.json --watch --host=192.168.3.188
    2. \{^_^}/ hi!
    3. Loading .\db.json
    4. Done
    5. Resources
    6. http://192.168.3.188:3000/posts
    7. http://192.168.3.188:3000/comments
    8. http://192.168.3.188:3000/profile
    9. Home
    10. http://192.168.3.188:3000
    11. Type s + enter at any time to create a snapshot of the database
    12. Watching...
    (2)http -代码示例:
    1. import http from '@ohos.net.http'
    2. @Entry
    3. @Component
    4. struct PageHttp {
    5. @State message: string = '网络请求-get'
    6. build() {
    7. Row() {
    8. Column() {
    9. Text("网络请求-get")//查询数据
    10. .fontSize(30)
    11. .fontWeight(FontWeight.Bold)
    12. .onClick(async () => {
    13. let httpRequest = http.createHttp()
    14. const res = await httpRequest.request("http://192.168.3.188:3000/posts", {
    15. method: http.RequestMethod.GET,
    16. header: {},
    17. extraData: { //get的条件
    18. author: "刘白云"
    19. }
    20. })
    21. console.log(JSON.stringify(res.result))
    22. })
    23. Text("网络请求-post")//新增数据
    24. .fontSize(30)
    25. .fontWeight(FontWeight.Bold)
    26. .onClick(async () => {
    27. let httpRequest = http.createHttp()
    28. const res = await httpRequest.request("http://192.168.3.188:3000/posts", {
    29. method: http.RequestMethod.POST,
    30. header: {},
    31. extraData: { //post为新增数据
    32. author: "留白的云"
    33. }
    34. })
    35. console.log(JSON.stringify(res.result))
    36. })
    37. Text("网络请求-put")//更新数据
    38. .fontSize(30)
    39. .fontWeight(FontWeight.Bold)
    40. .onClick(async () => {
    41. let httpRequest = http.createHttp()
    42. const res = await httpRequest.request("http://192.168.3.188:3000/posts/2", {
    43. method: http.RequestMethod.PUT,
    44. header: {},
    45. extraData: { //put为更新数据
    46. title: "day",
    47. author:"刘白云"
    48. }
    49. })
    50. console.log(JSON.stringify(res.result))
    51. })
    52. Text("网络请求-delete")//删除数据
    53. .fontSize(30)
    54. .fontWeight(FontWeight.Bold)
    55. .onClick(async () => {
    56. let httpRequest = http.createHttp()
    57. const res = await httpRequest.request("http://192.168.3.188:3000/posts/3", {
    58. method: http.RequestMethod.DELETE,
    59. header: {},
    60. extraData: {
    61. }
    62. })
    63. console.log(JSON.stringify(res.result))
    64. })
    65. }
    66. .width('100%')
    67. }
    68. .height('100%')
    69. }
    70. }
    (3)ohpm安装

    首先安装ohpm,找到openharmony安装的opm的bin目录下。

    cmd  执行 init.bat。

     安装完成后。将ohpm配置到环境变量里。path里新增ohpm的bin目录路径。

     cmd运行。打印 ohpm就会有ohpm的版本号。

    但是devstuido终端里打开失败。需要配置权限:powershell用管理员身份打开。

    1. PS C:\WINDOWS\system32> set-executionpolicy remotesigned
    2. 执行策略更改
    3. 执行策略可帮助你防止执行不信任的脚本。更改执行策略可能会产生安全风险,如 https:/go.microsoft.com/fwlink/?LinkID=135170
    4. 中的 about_Execution_Policies 帮助主题所述。是否要更改执行策略?
    5. [Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 暂停(S) [?] 帮助 (默认值为“N”): A
    6. PS C:\WINDOWS\system32>

    使用json-server 开启多个服务

    json-server .\db.json --wath --host=192.168.3.188 --port 8000
     (4)axios -代码示例
    1. import http from '@ohos.net.http'
    2. import axios from '@ohos/axios'
    3. @Entry
    4. @Component
    5. struct Pagehttp1 {
    6. @State message: string = 'Hello World'
    7. @State list:Object[]=[]
    8. // 自带的网络请求
    9. // async aboutToAppear() {
    10. // // http网络请求
    11. // let httpRe = http.createHttp();
    12. // let res = await httpRe.request("http://192.168.3.188:3000/data",
    13. // {
    14. // method: http.RequestMethod.GET,
    15. // header: {
    16. // },
    17. // expectDataType:http.HttpDataType.OBJECT//期望返回的数据类型为对象
    18. // })
    19. // console.log(JSON.stringify(res.result))
    20. // this.list=res.result["films"]
    21. // }
    22. //axios 网络请求
    23. async aboutToAppear() {
    24. // axios网络请求
    25. const res=await axios({
    26. url:"http://192.168.3.188:3000/data"
    27. })
    28. console.log(JSON.stringify(res.data))
    29. this.list=res.data["films"]
    30. }
    31. build() {
    32. Row() {
    33. Column() {
    34. List(){
    35. ForEach(this.list,item=>{
    36. ListItem(){
    37. Row(){
    38. Image((item.poster as string).replace("pic.maizuo.com","static.maizuo.com/pc/v5") ).size({width:100})
    39. Text(item.name)
    40. }.width('100%').alignItems(VerticalAlign.Top)
    41. }.margin({bottom:10}).padding(10)
    42. },item=>item['filmId'])
    43. }
    44. }
    45. .width('100%')
    46. }
    47. .height('100%')
    48. }
    49. }
    1. import http from '@ohos.net.http'
    2. import axios, { AxiosHeaders } from '@ohos/axios'
    3. @Entry
    4. @Component
    5. struct PageHttp {
    6. @State message: string = '网络请求-get'
    7. build() {
    8. Row() {
    9. Column() {
    10. // --------------------------------------axios--------------------------------------
    11. Text("axios网络请求-get")//查询数据
    12. .fontSize(30)
    13. .fontWeight(FontWeight.Bold)
    14. .onClick(async () => {
    15. const res = await axios({
    16. url:"http://192.168.3.188:8000/posts",
    17. method:'get',
    18. params:{//参数查询
    19. author:"刘白云"
    20. },
    21. data:{ }//data方式 后端接受body-json形式
    22. })
    23. console.log(JSON.stringify(res.data))
    24. })
    25. Text("axios网络请求-post")//新增数据
    26. .fontSize(30)
    27. .fontWeight(FontWeight.Bold)
    28. .onClick(async () => {
    29. const res=await axios({
    30. url:"http://192.168.3.188:8000/posts",
    31. method:"post",
    32. data:{//新增要用data
    33. author: "留白的云axios"
    34. }
    35. })
    36. console.log(JSON.stringify(res.data))
    37. })
    38. Text("axios网络请求-put")//更新数据
    39. .fontSize(30)
    40. .fontWeight(FontWeight.Bold)
    41. .onClick(async () => {
    42. const res = await axios({
    43. url:"http://192.168.3.188:8000/posts/6",
    44. method:"put",
    45. data:{
    46. author: "留白的云666"
    47. }
    48. })
    49. console.log(JSON.stringify(res.data))
    50. })
    51. Text("axios网络请求-delete")//删除数据
    52. .fontSize(30)
    53. .fontWeight(FontWeight.Bold)
    54. .onClick(async () => {
    55. const res = await axios({
    56. url:"http://192.168.3.188:8000/posts/5",
    57. method:"delete"
    58. })
    59. console.log(JSON.stringify(res.data))
    60. })
    61. }
    62. .width('100%')
    63. }
    64. .height('100%')
    65. }
    66. }
     (5)db.json测试源文件
    1. {
    2. "posts": [
    3. {
    4. "id": 1,
    5. "title": "json-server",
    6. "author": "typicode"
    7. },
    8. {
    9. "title": "day",
    10. "author": "刘白云",
    11. "id": 2
    12. },
    13. {
    14. "author": "留白的云",
    15. "id": 4
    16. },
    17. {
    18. "author": "留白的云666",
    19. "id": 6
    20. },
    21. {
    22. "author": "留白的云axios",
    23. "id": 7
    24. }
    25. ],
    26. "comments": [
    27. {
    28. "id": 1,
    29. "body": "some comment",
    30. "postId": 1
    31. }
    32. ],
    33. "profile": {
    34. "name": "typicode"
    35. }
    36. }
    (6)db1.json 测试源文件
    1. {
    2. "data": {
    3. "films": [
    4. {
    5. "filmId": 6821,
    6. "name": "你想活出怎样的人生",
    7. "poster": "https://pic.maizuo.com/usr/movie/57116f984c95f7e0abe768550bd78ef9.jpg",
    8. "actors": [
    9. {
    10. "name": "宫崎骏",
    11. "role": "导演",
    12. "avatarAddress": "https://pic.maizuo.com/usr/movie/589bd0777f174e554b866cbc61145422.jpg"
    13. },
    14. {
    15. "name": "山时聪真",
    16. "role": "真人",
    17. "avatarAddress": "https://pic.maizuo.com/usr/movie/ed862a087874582813cf62ff331be69d.jpg"
    18. },
    19. {
    20. "name": "刘昊然",
    21. "role": "真人(中文配音)",
    22. "avatarAddress": "https://pic.maizuo.com/usr/movie/a7b242f9b8167e42c460d3b96d28a721.jpg"
    23. },
    24. {
    25. "name": "菅田将晖",
    26. "role": "苍鹭",
    27. "avatarAddress": "https://pic.maizuo.com/usr/movie/06eae5dd0a6a705ae6eb1f2c625fc1e0.jpg"
    28. },
    29. {
    30. "name": "大鹏",
    31. "role": "苍鹭\u0026苍鹭男(中文配音)",
    32. "avatarAddress": "https://pic.maizuo.com/usr/movie/3125ea2b699584e68cb3c3b9ae586217.png"
    33. }
    34. ],
    35. "director": "宫崎骏",
    36. "category": "动画|奇幻|冒险",
    37. "synopsis": "电影讲述了少年牧真人的母亲葬身火海后,他随父亲与继母组成新家庭。深陷悲伤的真人阴郁孤僻,难以融入新环境。一次意外,他跟随一只会说话的苍鹭闯入废弃的神秘塔楼,却不料进入了奇幻的“亡灵世界”,开始了一场不可思议的冒险……",
    38. "filmType": {
    39. "name": "2D",
    40. "value": 1
    41. },
    42. "nation": "日本",
    43. "language": "",
    44. "videoId": "",
    45. "premiereAt": 1712102400,
    46. "timeType": 3,
    47. "runtime": 124,
    48. "grade": "7.4",
    49. "item": {
    50. "name": "2D",
    51. "type": 1
    52. },
    53. "isPresale": true,
    54. "isSale": false
    55. },
    56. {
    57. "filmId": 6753,
    58. "name": "哥斯拉大战金刚2:帝国崛起",
    59. "poster": "https://pic.maizuo.com/usr/movie/be17f0784f8a83fbe6be79df1ce1914b.jpg",
    60. "actors": [
    61. {
    62. "name": "亚当·温加德",
    63. "role": "导演",
    64. "avatarAddress": "https://pic.maizuo.com/usr/movie/de782ff4f69db74eb031ff33a035f8c8.jpg"
    65. },
    66. {
    67. "name": "金刚",
    68. "role": "演员",
    69. "avatarAddress": "https://pic.maizuo.com/usr/movie/cab8709e5703861909485b45abae59c0.jpg"
    70. },
    71. {
    72. "name": "哥斯拉",
    73. "role": "演员",
    74. "avatarAddress": "https://pic.maizuo.com/usr/movie/f7b2715cecfc4365ff749a5a9e6b025c.jpg"
    75. },
    76. {
    77. "name": "丽贝卡·豪尔",
    78. "role": " 艾琳 Ilene Andrews",
    79. "avatarAddress": "https://pic.maizuo.com/usr/movie/467d85cafb939c0285ab69ae887fce84.jpg"
    80. },
    81. {
    82. "name": "布莱恩·泰里·亨利",
    83. "role": " 伯尼 Bernie Hayes",
    84. "avatarAddress": "https://pic.maizuo.com/usr/movie/c10d99a613d070ce83c60e25d169cb64.jpg"
    85. }
    86. ],
    87. "director": "亚当·温加德",
    88. "category": "动作|冒险|科幻",
    89. "synopsis": "继上一次的怪兽高燃对战之后,金刚和哥斯拉将再度联手对抗一个潜伏在世界中的巨大威胁,并逐步探索这些巨兽们的起源以及骷髅岛等地的奥秘。同时,上古之战的面纱也将会被揭晓,而正是那场战斗创造出了这些超凡的生物,并深刻影响了人类世界的命运。",
    90. "filmType": {
    91. "name": "3D",
    92. "value": 2
    93. },
    94. "nation": "美国",
    95. "language": "",
    96. "videoId": "",
    97. "premiereAt": 1711670400,
    98. "timeType": 3,
    99. "runtime": 115,
    100. "grade": "7.2",
    101. "item": {
    102. "name": "3D",
    103. "type": 2
    104. },
    105. "isPresale": true,
    106. "isSale": false
    107. },
    108. {
    109. "filmId": 6812,
    110. "name": "草木人间",
    111. "poster": "https://pic.maizuo.com/usr/movie/7a4e3daddbe3a35aa4247cb4ae6273cd.jpg",
    112. "actors": [
    113. {
    114. "name": "陈建斌",
    115. "role": "老钱",
    116. "avatarAddress": "https://pic.maizuo.com/usr/movie/7fc8f50b79675adaeb37a83833696652.jpg"
    117. },
    118. {
    119. "name": "王佳佳",
    120. "role": "万晴",
    121. "avatarAddress": "https://pic.maizuo.com/usr/movie/655d3d188544bec01ebab82c5adaee3e.jpg"
    122. },
    123. {
    124. "name": "顾晓刚",
    125. "role": "导演",
    126. "avatarAddress": "https://pic.maizuo.com/usr/movie/83acc483e3d165bf99083da374aaec20.jpg"
    127. },
    128. {
    129. "name": "吴磊",
    130. "role": "何目莲",
    131. "avatarAddress": "https://pic.maizuo.com/usr/movie/42ab0462b8b3bc7c2203713320ab9c8e.jpg"
    132. },
    133. {
    134. "name": "蒋勤勤",
    135. "role": "吴苔花",
    136. "avatarAddress": "https://pic.maizuo.com/usr/movie/529786e75f23f5d5b45ddf3f2d32c652.jpg"
    137. }
    138. ],
    139. "director": "顾晓刚",
    140. "category": "剧情|犯罪",
    141. "synopsis": "丈夫何山凭空消失了十年后,苔花(蒋勤勤饰)正要迈进新生,但命运却把她推向了另一重绝境——她前脚被情人(陈建斌饰)母亲从采茶园赶走,后脚就被最亲近的好姐妹金兰骗进了传销组织“蝴蝶国际”。母亲沉迷其中,让一边寻父一边救母的儿子目莲(吴磊饰)身心疲惫,而蝴蝶国际却如藤蔓疯长一般,将恶魔的种子根植在无数百姓心中。苔花也摇身一变,从衣着打扮到言行举止都宛如“新生”,疯癫的举动让目莲感到诧异。母亲如蝴蝶一般翩翩于梦中之际,儿子想尽一切办法奋力解救……这座人间炼狱究竟该怎样逃脱?现代版“目连救母”能否成功?",
    142. "filmType": {
    143. "name": "2D",
    144. "value": 1
    145. },
    146. "nation": "中国大陆",
    147. "language": "",
    148. "videoId": "",
    149. "premiereAt": 1712102400,
    150. "timeType": 3,
    151. "runtime": 118,
    152. "grade": "7.7",
    153. "item": {
    154. "name": "2D",
    155. "type": 1
    156. },
    157. "isPresale": true,
    158. "isSale": false
    159. },
    160. {
    161. "filmId": 6816,
    162. "name": "黄雀在后!",
    163. "poster": "https://pic.maizuo.com/usr/movie/adc91ba9d7505d7352260f9d4a6fcff2.jpg",
    164. "actors": [
    165. {
    166. "name": "徐伟",
    167. "role": "导演",
    168. "avatarAddress": "https://pic.maizuo.com/usr/movie/b8566f83d0af556ec66e67fde7e91f89.jpg"
    169. },
    170. {
    171. "name": "何文超",
    172. "role": "导演",
    173. "avatarAddress": "https://pic.maizuo.com/usr/movie/cafb44fa22a10eb809ace85b89291d3b.jpg"
    174. },
    175. {
    176. "name": "冯绍峰",
    177. "role": "演员",
    178. "avatarAddress": "https://pic.maizuo.com/usr/movie/63cd6726f250c6788cc8d8f4caab1509.jpg"
    179. },
    180. {
    181. "name": "陶虹",
    182. "role": "演员",
    183. "avatarAddress": "https://pic.maizuo.com/usr/movie/87e31cded6c44462755aa44eed9b0be2.jpg"
    184. },
    185. {
    186. "name": "黄觉",
    187. "role": "演员",
    188. "avatarAddress": "https://pic.maizuo.com/usr/movie/793afc2b277346f51375d06f84d732ff.jpg"
    189. }
    190. ],
    191. "director": "徐伟|何文超",
    192. "category": "犯罪|悬疑|剧情",
    193. "synopsis": "10年前的一个夏夜,警官袁文山(冯绍峰 饰)接到一起抢劫杀人案,在逐渐深入的调查过程中,当晚在场的嫌疑人们逐一浮出水面,然而案情的真相远非表面那般简单,三案并行,一场利益和正义的较量愈演愈烈,卷入其中的人们都是所图为何?究竟是情法之争,还是欲望驱使?在案件稍有眉目之时,袁文山却发现了一个被自己忽略的重要线索... ...",
    194. "filmType": {
    195. "name": "2D",
    196. "value": 1
    197. },
    198. "nation": "中国大陆",
    199. "language": "",
    200. "videoId": "",
    201. "premiereAt": 1712102400,
    202. "timeType": 3,
    203. "runtime": 99,
    204. "grade": "7.6",
    205. "item": {
    206. "name": "2D",
    207. "type": 1
    208. },
    209. "isPresale": true,
    210. "isSale": false
    211. },
    212. {
    213. "filmId": 6795,
    214. "name": "功夫熊猫4",
    215. "poster": "https://pic.maizuo.com/usr/movie/89d7a3bbd98d0ffab74da50cd03641e2.jpg",
    216. "actors": [
    217. {
    218. "name": "迈克·米歇尔",
    219. "role": "导演",
    220. "avatarAddress": "https://pic.maizuo.com/usr/movie/9f40bb3aaf9ef967b67b4bc3123a03e8.jpg"
    221. },
    222. {
    223. "name": "杰克·布莱克",
    224. "role": "阿宝 Po",
    225. "avatarAddress": "https://pic.maizuo.com/usr/movie/0e4b06db0fb7f08fd309cf872b994cce.jpg"
    226. },
    227. {
    228. "name": "黄渤",
    229. "role": "阿宝 Po(中文配音)",
    230. "avatarAddress": "https://pic.maizuo.com/usr/movie/f2a4a18bf8cf420b09c0a19d20a4a0fc.jpg"
    231. },
    232. {
    233. "name": "奥卡菲娜",
    234. "role": "小真 Zhen",
    235. "avatarAddress": "https://pic.maizuo.com/usr/movie/1b7f719c81114df25dc2688ea39f6e18.jpeg"
    236. },
    237. {
    238. "name": "关继威",
    239. "role": "Han",
    240. "avatarAddress": "https://pic.maizuo.com/usr/movie/b008f921bda277caae91823cffb4a4e6.jpg"
    241. }
    242. ],
    243. "director": "迈克·米歇尔",
    244. "category": "动画|动作|冒险",
    245. "synopsis": "爷青回!《功夫熊猫》新作来袭!阿宝“升职”同时,新仇旧敌集结现身,大龙竟起死回生?狐狸小真身份神秘,到底有何心机?阿宝被师傅要求选出下一任神龙大侠,正苦恼如何应对时,阿宝昔日的手下败将们却纷纷重出江湖!身世神秘的狐狸小真告诉阿宝,这一切的幕后黑手正是邪恶女巫魅影妖后!阿宝能否打败魅影妖后,昔日敌人又为何再次现身?这次又会发生怎样的搞笑趣事?赶快带上亲朋好友,一起到影院寻找真相吧~",
    246. "filmType": {
    247. "name": "3D",
    248. "value": 2
    249. },
    250. "nation": "美国",
    251. "language": "",
    252. "videoId": "",
    253. "premiereAt": 1711065600,
    254. "timeType": 3,
    255. "runtime": 94,
    256. "grade": "7.3",
    257. "item": {
    258. "name": "3D",
    259. "type": 2
    260. },
    261. "isPresale": true,
    262. "isSale": false
    263. },
    264. {
    265. "filmId": 6767,
    266. "name": "我们一起摇太阳",
    267. "poster": "https://pic.maizuo.com/usr/movie/a8ecf5fcbeeddb7488876f042bf7baa4.jpg",
    268. "actors": [
    269. {
    270. "name": "彭昱畅",
    271. "role": "吕途",
    272. "avatarAddress": "https://pic.maizuo.com/usr/movie/91590c0fb4e9e895503796203ed14489.jpg"
    273. },
    274. {
    275. "name": "李庚希",
    276. "role": "凌敏",
    277. "avatarAddress": "https://pic.maizuo.com/usr/movie/e0d8d70d6a267dc4563806bc4b522b7b.jpg"
    278. },
    279. {
    280. "name": "韩延",
    281. "role": "导演",
    282. "avatarAddress": "https://pic.maizuo.com/usr/movie/cfa40371868495071b1c97b72c55ab8f.jpg"
    283. },
    284. {
    285. "name": "徐帆",
    286. "role": "陶怡",
    287. "avatarAddress": "https://pic.maizuo.com/usr/movie/4bc8d78d21b4e6c6eeeeedc143ca5b83.jpg"
    288. },
    289. {
    290. "name": "高亚麟",
    291. "role": "凌父",
    292. "avatarAddress": "https://pic.maizuo.com/usr/movie/28c233165445e3079756d3c52f8cbb83.jpg"
    293. }
    294. ],
    295. "director": "韩延",
    296. "category": "爱情|剧情|家庭",
    297. "synopsis": "春节档温暖现实主义题材电影,挥别旧年的阴霾,迎接新年的爱与阳光!韩延导演“生命三部曲”终章,当“没头脑”吕途遇上“不高兴”凌敏,两个身患重症却性格迥异的年轻人,因为“生命接力”的约定,阴差阳错地踏上了一段充满爱与力量的治愈之旅。",
    298. "filmType": {
    299. "name": "2D",
    300. "value": 1
    301. },
    302. "nation": "中国大陆",
    303. "language": "",
    304. "videoId": "",
    305. "premiereAt": 1707523200,
    306. "timeType": 3,
    307. "runtime": 129,
    308. "grade": "7.9",
    309. "item": {
    310. "name": "2D",
    311. "type": 1
    312. },
    313. "isPresale": true,
    314. "isSale": false
    315. },
    316. {
    317. "filmId": 6818,
    318. "name": "大“反”派",
    319. "poster": "https://pic.maizuo.com/usr/movie/b0e862902539c163234f729b6d217fc5.jpg",
    320. "actors": [
    321. {
    322. "name": "李嘉琦",
    323. "role": "吴雯",
    324. "avatarAddress": "https://pic.maizuo.com/usr/movie/b2df379bfff0428e317cd646f312c379.jpg"
    325. },
    326. {
    327. "name": "周大勇",
    328. "role": "老大",
    329. "avatarAddress": "https://pic.maizuo.com/usr/movie/73c2450f6bb2f252eece3c029a05e880.jpg"
    330. },
    331. {
    332. "name": "马旭东",
    333. "role": "老二",
    334. "avatarAddress": "https://pic.maizuo.com/usr/movie/c106ea4b72f81c5e873ac12b3c9dde36.png"
    335. },
    336. {
    337. "name": "包贝尔",
    338. "role": "导演",
    339. "avatarAddress": "https://pic.maizuo.com/usr/movie/79d7358e23af59921e4d301a63262c51.jpg"
    340. },
    341. {
    342. "name": "包贝尔",
    343. "role": "毕超",
    344. "avatarAddress": "https://pic.maizuo.com/usr/movie/79d7358e23af59921e4d301a63262c51.jpg"
    345. }
    346. ],
    347. "director": "包贝尔",
    348. "category": "喜剧|剧情",
    349. "synopsis": "爽翻又笑翻!一言不合暴打大反派!包贝尔化身倒霉蛋惨遭碾压!大家好,我是毕超(包贝尔 饰),一个小演员。有一天我锦鲤附体,拿下了饰演大反派的机会。然而一场意外,我失忆了!我是谁?难道我真是“穷凶极恶”的超级大反派?之前的我竟然在策划一场绑架大富豪的计划!这一次,身为反派的我,一定要过上叱咤风云、泼天富贵的生活,就此走上人生巅峰。奈何我却像“小卡拉米”,不仅手无缚鸡之力,一路挨饿挨揍,还得罪了三位“要钱不要命”的歹徒,他们竟然想绑架我?怎么办,在线求,很急!",
    350. "filmType": {
    351. "name": "2D",
    352. "value": 1
    353. },
    354. "nation": "中国大陆",
    355. "language": "",
    356. "videoId": "",
    357. "premiereAt": 1712188800,
    358. "timeType": 3,
    359. "runtime": 99,
    360. "item": {
    361. "name": "2D",
    362. "type": 1
    363. },
    364. "isPresale": true,
    365. "isSale": false
    366. },
    367. {
    368. "filmId": 6785,
    369. "name": "冰雪女王5:融冰之战",
    370. "poster": "https://pic.maizuo.com/usr/movie/e9c5c46b152f7bca5f61c6e40dfbf08c.jpg",
    371. "actors": [
    372. {
    373. "name": "阿列克谢·特斯蒂斯林",
    374. "role": "导演",
    375. "avatarAddress": "https://pic.maizuo.com/usr/movie/3e51ccce9e985dc3fbefdf34afef0014.jpg"
    376. },
    377. {
    378. "name": "安德烈·科林考夫",
    379. "role": "导演",
    380. "avatarAddress": "https://pic.maizuo.com/usr/movie/d693744de35094b11f9f4112a92af193.jpg"
    381. },
    382. {
    383. "name": "Svetlana Kuznetsova",
    384. "role": "演员",
    385. "avatarAddress": "https://pic.maizuo.com/usr/movie/694c7607c88fc0fb3a866344a717865c.jpg"
    386. }
    387. ],
    388. "director": "阿列克谢·特斯蒂斯林|安德烈·科林考夫",
    389. "category": "动画|家庭|冒险",
    390. "synopsis": "凯和格尔达生活在一个安静舒适的小镇里,突然间冰霜之灵降临此地,冻结了所有的居民。小女巫艾拉前来帮助英雄们,他们一起前往神奇的魔镜世界,寻找并夺回那些冰霜之灵!",
    391. "filmType": {
    392. "name": "2D",
    393. "value": 1
    394. },
    395. "nation": "俄罗斯",
    396. "language": "",
    397. "videoId": "",
    398. "premiereAt": 1712188800,
    399. "timeType": 3,
    400. "runtime": 80,
    401. "item": {
    402. "name": "2D",
    403. "type": 1
    404. },
    405. "isPresale": true,
    406. "isSale": false
    407. },
    408. {
    409. "filmId": 6758,
    410. "name": "周处除三害",
    411. "poster": "https://pic.maizuo.com/usr/movie/43b5bac62cae08924a0a7bcca88beed3.jpg",
    412. "actors": [
    413. {
    414. "name": "黄精甫",
    415. "role": "导演",
    416. "avatarAddress": "https://pic.maizuo.com/usr/movie/875a2b99b486eb17a2e326946b4d7a45.jpg"
    417. },
    418. {
    419. "name": "阮经天",
    420. "role": " 陈桂林",
    421. "avatarAddress": "https://pic.maizuo.com/usr/movie/ed976762b67b126097c9356bca130b7a.jpg"
    422. },
    423. {
    424. "name": "袁富华",
    425. "role": "香港仔",
    426. "avatarAddress": "https://pic.maizuo.com/usr/movie/da120fbcd5a3a3409ae512986b534f78.jpg"
    427. },
    428. {
    429. "name": "陈以文",
    430. "role": "尊者",
    431. "avatarAddress": "https://pic.maizuo.com/usr/movie/64a63f0f3e4dfa50cad0367dc4543c38.jpg"
    432. },
    433. {
    434. "name": "王净",
    435. "role": "小美",
    436. "avatarAddress": "https://pic.maizuo.com/usr/movie/f15996f36426a4fb61dbe5f7bcc5290a.jpg"
    437. }
    438. ],
    439. "director": "黄精甫",
    440. "category": "动作|犯罪",
    441. "synopsis": "通缉犯陈桂林生命将尽,却发现自己在通缉榜上只排名第三,他决心查出前两名通缉犯的下落,并将他们一一除掉。陈桂林以为自己已成为当代的周处除三害,却没想到永远参不透的贪嗔痴,才是人生终要面对的罪与罚。电影引用的“周处除三害”典故,见于《晋书·周处传》和《世说新语》。据记载,少年周处身形魁梧,武力高强,却横行乡里,为邻人所厌。后周处只身斩杀猛虎孽蛟,他自己也浪子回头、改邪归正,至此三害皆除。",
    442. "filmType": {
    443. "name": "2D",
    444. "value": 1
    445. },
    446. "nation": "中国台湾",
    447. "language": "",
    448. "videoId": "",
    449. "premiereAt": 1709251200,
    450. "timeType": 3,
    451. "runtime": 134,
    452. "grade": "7.4",
    453. "item": {
    454. "name": "2D",
    455. "type": 1
    456. },
    457. "isPresale": true,
    458. "isSale": false
    459. },
    460. {
    461. "filmId": 6786,
    462. "name": "坠落的审判",
    463. "poster": "https://pic.maizuo.com/usr/movie/a1cfca3e8ac6d12ac07cdbd9fc7a0697.jpg",
    464. "actors": [
    465. {
    466. "name": "茹斯汀·特里耶",
    467. "role": "导演",
    468. "avatarAddress": "https://pic.maizuo.com/usr/movie/69178dbbc98aee3ab2fa12a4f21952c1.jpg"
    469. },
    470. {
    471. "name": "桑德拉·惠勒",
    472. "role": " Sandra Voyter",
    473. "avatarAddress": "https://pic.maizuo.com/usr/movie/38c134c4bdac10d2d8dcf10c059cfd1f.jpg"
    474. },
    475. {
    476. "name": "斯万·阿劳德",
    477. "role": " Maître Vincent Renzi",
    478. "avatarAddress": "https://pic.maizuo.com/usr/movie/dbfdb35a687980af2e6591931e363f16.jpg"
    479. },
    480. {
    481. "name": "安托万·赖纳茨",
    482. "role": " L'avocat général",
    483. "avatarAddress": "https://pic.maizuo.com/usr/movie/08405bf7416d13af4aeea42e01b94e4b.jpg"
    484. },
    485. {
    486. "name": "萨穆埃尔·泰斯",
    487. "role": " Samuel Maleski",
    488. "avatarAddress": "https://pic.maizuo.com/usr/movie/644bd98b7a230279f393f2e3a8ed09cf.jpg"
    489. }
    490. ],
    491. "director": "茹斯汀·特里耶",
    492. "category": "剧情|家庭",
    493. "synopsis": "2023戛纳金棕榈最佳影片!2024奥斯卡最佳原创剧本大奖!狂揽全球280+项大奖及提名!继是枝裕和的《小偷家族》后,时隔六年,再度登陆内地大银幕的金棕榈最佳影片!国内外各大平台口碑爆棚,影片以女性视角细腻地呈现了夫妻关系中的隐痛,丈夫的死亡真相唤起观众对亲密关系的深入思考和共鸣,没有谁的生活经得起这样的审判!但人性中不肯投降的、微弱的美好和希望,最终将指引着每个人继续前行!3月29日,大银幕探寻家庭与婚姻的真相!",
    494. "filmType": {
    495. "name": "2D",
    496. "value": 1
    497. },
    498. "nation": "法国",
    499. "language": "",
    500. "videoId": "",
    501. "premiereAt": 1711670400,
    502. "timeType": 3,
    503. "runtime": 152,
    504. "grade": "7.5",
    505. "item": {
    506. "name": "2D",
    507. "type": 1
    508. },
    509. "isPresale": true,
    510. "isSale": false
    511. }
    512. ],
    513. "total": 33
    514. }
    515. }

  • 相关阅读:
    Zip压缩包密码如何取消?没有密码该怎么办?
    C++继承
    Nginx学习笔记07——Nginx负载均衡
    日语基础复习 Day 15
    通过插件去除Kotlin混淆去除 @Metadata标记
    一款适用于.Net的高性能文件上传项目
    【Linux】线程同步:互斥锁、读写锁、条件变量、自旋锁、屏障
    Games202,作业1(QT下实现PCSS)
    17. Letter Combinations of a Phone Number
    【机器学习】正规方程与梯度下降API及案例预测
  • 原文地址:https://blog.csdn.net/huyawenz/article/details/137331225