uploadImageToAvatarCos abstract method

Future<String?> uploadImageToAvatarCos(
  1. String anyImagePath, {
  2. required bool isSelfie,
})

需要子类重写的方法 0、上传本地头像文件到cos桶,并返回图片的网络地址

Implementation

Future<String?> uploadImageToAvatarCos(
  String anyImagePath, {
  required bool isSelfie, // 注意:自拍用于活体检测的头像,不会作为最后的头像,需要传到不同桶来限制用户访问
});