fly 5 년 전
부모
커밋
0c9c5b9e91
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Libs/Pay/Merchants/UnionPay.php

+ 1 - 1
app/Libs/Pay/Merchants/UnionPay.php

@@ -123,7 +123,7 @@ class UnionPay implements PayMerchantInterface
      */
     public function generateTradeNo()
     {
-        return $this->msgSrcId . date("YmdHis") . substr(uniqid(), 0, 12);
+        return substr($this->msgSrcId . date("YmdHis") . hexdec(uniqid()), 0, 30);
     }
 
     public function makeSign(array $data)