Commit 4ab30d3f authored by ml's avatar ml

kyc 详情图片 oss 相关修改

parent 23b82378
...@@ -298,8 +298,8 @@ async function updateImageUrl(dbRealNameInfo: any) { ...@@ -298,8 +298,8 @@ async function updateImageUrl(dbRealNameInfo: any) {
let identityFrondSide = dbRealNameInfo.identity_frond_side; let identityFrondSide = dbRealNameInfo.identity_frond_side;
if (identityFrondSide) { if (identityFrondSide) {
if (!identityFrondSide.includes("http")) { if (!identityFrondSide.includes("http")) {
dbRealNameInfo.identity_frond_side_small = ossUtils.resizeWithWaterMark(identityFrondSide, "Madex", 300); dbRealNameInfo.identity_frond_side_small = await ossUtils.resizeWithWaterMark(identityFrondSide, "Madex", 300);
dbRealNameInfo.identity_frond_side = ossUtils.withWaterMark(identityFrondSide, "Madex"); dbRealNameInfo.identity_frond_side = await ossUtils.withWaterMark(identityFrondSide, "Madex");
} }
else { else {
dbRealNameInfo.identity_frond_side_small = identityFrondSide dbRealNameInfo.identity_frond_side_small = identityFrondSide
...@@ -313,8 +313,8 @@ async function updateImageUrl(dbRealNameInfo: any) { ...@@ -313,8 +313,8 @@ async function updateImageUrl(dbRealNameInfo: any) {
let identityOtherSide = dbRealNameInfo.identity_other_side; let identityOtherSide = dbRealNameInfo.identity_other_side;
if (identityOtherSide) { if (identityOtherSide) {
if (!identityOtherSide.includes("http")) { if (!identityOtherSide.includes("http")) {
dbRealNameInfo.identity_other_side_small = ossUtils.resizeWithWaterMark(identityOtherSide, "Madex", 300); dbRealNameInfo.identity_other_side_small = await ossUtils.resizeWithWaterMark(identityOtherSide, "Madex", 300);
dbRealNameInfo.identity_other_side = ossUtils.withWaterMark(identityOtherSide, "Madex"); dbRealNameInfo.identity_other_side = await ossUtils.withWaterMark(identityOtherSide, "Madex");
} }
else { else {
dbRealNameInfo.identity_other_side_small = identityOtherSide dbRealNameInfo.identity_other_side_small = identityOtherSide
...@@ -329,8 +329,8 @@ async function updateImageUrl(dbRealNameInfo: any) { ...@@ -329,8 +329,8 @@ async function updateImageUrl(dbRealNameInfo: any) {
let identityInHand = dbRealNameInfo.identity_in_hand; let identityInHand = dbRealNameInfo.identity_in_hand;
if (identityInHand) { if (identityInHand) {
if (!identityInHand.includes("http")) { if (!identityInHand.includes("http")) {
dbRealNameInfo.identity_in_hand_small = ossUtils.resizeWithWaterMark(identityInHand, "Madex", 300); dbRealNameInfo.identity_in_hand_small = await ossUtils.resizeWithWaterMark(identityInHand, "Madex", 300);
dbRealNameInfo.identity_in_hand = ossUtils.withWaterMark(identityInHand, "Madex"); dbRealNameInfo.identity_in_hand = await ossUtils.withWaterMark(identityInHand, "Madex");
} }
else { else {
dbRealNameInfo.identity_in_hand_small = identityInHand dbRealNameInfo.identity_in_hand_small = identityInHand
...@@ -345,8 +345,8 @@ async function updateImageUrl(dbRealNameInfo: any) { ...@@ -345,8 +345,8 @@ async function updateImageUrl(dbRealNameInfo: any) {
let latestPhoto = dbRealNameInfo.latest_photo; let latestPhoto = dbRealNameInfo.latest_photo;
if (latestPhoto) { if (latestPhoto) {
if (!latestPhoto.includes("http")) { if (!latestPhoto.includes("http")) {
dbRealNameInfo.latest_photo_small = ossUtils.resizeWithWaterMark(latestPhoto, "Madex", 300); dbRealNameInfo.latest_photo_small = await ossUtils.resizeWithWaterMark(latestPhoto, "Madex", 300);
dbRealNameInfo.latest_photo = ossUtils.withWaterMark(latestPhoto, "Madex"); dbRealNameInfo.latest_photo = await ossUtils.withWaterMark(latestPhoto, "Madex");
} }
else { else {
dbRealNameInfo.latest_photo_small = latestPhoto dbRealNameInfo.latest_photo_small = latestPhoto
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment