This error message is because MD5 encryption is used, but the MD5 encrypted data is not found to be undefined
curObj.creditCode ?curObj.creditCode : md5(curObj.registerNo))
If curobj.registerno here is undefined, an error will be reported.
When you see this error, print it on the console.