/**
* 生成唯一订单号的算法
*/
public function build_order_no(){
return "ID".date('Ymd').substr(implode(NULL, array_map('ord', str_split(substr(uniqid(), 7, 13), 1))), 0, 8);
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2021-09-04
猜你喜欢
  • 2022-02-06
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案