Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
//距离确认收货时间
|
||||
function auto_receipt_time($delivery_time){
|
||||
$auto_time=C("shop.auto_receipt_time");
|
||||
$auto_time=$auto_time*3600*24;
|
||||
$has_time=$auto_time+$delivery_time-time();
|
||||
//天
|
||||
$day=floor($has_time / 86400);
|
||||
$hours=ceil($has_time % 86400 / 3600);
|
||||
if($day){
|
||||
return $day."天".$hours."小时";
|
||||
}else{
|
||||
return $hours."小时";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user