收藏
回答

mediaCheckAsync不起作用?,只会返回 errcode: 0 大佬们,请教

wx.chooseVideo({

        sourceType: ['album', 'camera'],

        // maxDuration: 60,

        success: res => {

           const videoSrc = res.tempFilePath   

            wx.cloud.callFunction({

              name: "token"

            }).then(async res => {

              console.log("res->", res);

              const access_tokend = res.result.access_token

              await wx.request({

                url: 'https://api.weixin.qq.com/wxa/media_check_async?access_token=' + access_tokend,

                method: "POST",

                data: {

                  "media_url":  videoSrc,

                  media_type: 1,

                },

                json: true,

                success(res) {

                  console.log("res", res )

                }

              })

        

            })

 

          }

     

返回

  1. data:
  2. errcode0
  3. errmsg"ok"
  4. trace_id"44cbf5446e26e01a1cde871ef5f6377f"
  5. hasOwnProperty: (...)
  6. isPrototypeOf: (...)
  7. propertyIsEnumerable: (...)
  8. toLocaleString: (...)
  9. toString: (...)



回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容