MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / renderImage

Method renderImage

mini_program/common/Tools.js:676–684  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

674 }
675
676 renderImage(path) {
677 if (!path) return ''
678 if (path.indexOf('http') !== -1) return path
679 path = `${this.$$basePath}${path}`;
680 if(path.indexOf("www.diygw.com/upload")>0){
681 path = path.replace("www.diygw.com","lib.diygw.com")
682 }
683 return path;
684 }
685
686 makePhoneCall(e) {
687 let phone = "";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected