saveBusiness

sentry保存自定义信息

import { MicCore } from "@yl/super-jssdk"

MicCore.saveBusiness(optional)

参数说明

参数 类型 必填 作用
optional Object 必填参数

optional

参数 类型 必填 作用
businessID String 定位各业务系统唯一用户,如:企业号_用户名。用于排查插件问题时联系客户

返回说明

参数 类型 作用
resolve(result) Function 成功回调
reject(err) Function 失败回调,err为详细错误信息,是一个json对象,例如:{"errCode":-1,"errMsg":"出错啦"}

代码示例


MicCore.saveBusiness()
  .then((res) => {
    console.log(res);
  })
  .catch(err => {
    console.log('插件调用失败:', err)
  })

results matching ""

    No results matching ""