终端上扫用户的付款码,肯定没清键盘缓冲。。。所以,微信的付款码36位72位什么的全来了。。偏偏终端的哥们兼职的,只星期天处理公事。
能怎么样,擦屁股呗。。

{"level":"DEBUG","time":"2024-04-02T15:32:39.662+0800","app_id":"xxxxxxxx","msg":"placeorder: cartdata:xxxxxxx,amount:2500,barcode:131014308497832446131014308497832446"}

    if len(barcode) > 18 && len(barcode)%18 == 0 {
        times18 := len(barcode) / 18
        log.Log.Debugf("[%s] Buggy! Barcode is %d times 18, cutting it to 18", orderno, times18)
        barcode = barcode[(times18-1)*18 : times18*18]
    }

标签: none

添加新评论