修改科学计算字符类型

This commit is contained in:
2024-05-08 11:59:47 +08:00
parent 39a71a53e4
commit 3c22c9444b
6 changed files with 55 additions and 48 deletions
@@ -17,6 +17,7 @@ class AddServicePackageCompleteQueueCommand extends HyperfCommand
{
public function __construct(protected ContainerInterface $container)
{
date_default_timezone_set('Asia/Shanghai');
parent::__construct('addServicePackageFinishQueue');
}
@@ -50,9 +51,12 @@ class AddServicePackageCompleteQueueCommand extends HyperfCommand
// 添加服务包订单完成延迟队列
$finish_time = strtotime($order_service_package['finish_time']);
$time = $finish_time - time();
if (\Hyperf\Config\config('app_env') == "dev"){
$time = 5;
}
$queue_data = array();
$queue_data['order_no'] = $order_service_package['order_service_no'];
@@ -84,8 +88,9 @@ class AddServicePackageCompleteQueueCommand extends HyperfCommand
public function getExecOrder(): array
{
// 获取三天后结束时间
$three_day_finish_time = date('Y-m-d H:i:s',strtotime('+3 days', time()));
$finish_time_params = [date('Y-m-d H:i:s',time()),$three_day_finish_time];
$three_day_start_time = date('Y-m-d 00:00:00',strtotime('+3 days', strtotime(date('Y-m-d',time()))));
$three_day_finish_time = date('Y-m-d 23:59:59',strtotime('+3 days', strtotime(date('Y-m-d',time()))));
$finish_time_params = [$three_day_start_time,$three_day_finish_time];
$params = array();
$params['order_service_status'] = 3; // 订单状态(1:待支付 2:未开始 3:服务中 4:服务完成 5:服务取消)