SQLSTATE[23000]: Integrity constraint violation:1062 Duplicate entry1664187678631531497821000' for key 'UK ns payrefund out trade no' 问题截图解决办法 问题截图 记录一下问题>~< 解决办法 将字段out_trade_no设置为普通索引(NORMAL)即可。