UnboundLocalError: local variable 'merchantCode' referenced before assignment 问题描述:变量赋值前未定义 定位原因:变量没有结果返回,导致赋值失败