修改前端页面展示时间为东八区 尝试修复定时手机号码在线问题
This commit is contained in:
parent
69ee609c69
commit
0eae352872
|
@ -82,7 +82,7 @@ class TaskController
|
||||||
$user_id = $request->data['id'];
|
$user_id = $request->data['id'];
|
||||||
$phone = $request->post('phone');
|
$phone = $request->post('phone');
|
||||||
$GetLodeLog = GetLodeLog::where('phone', $phone)->first();
|
$GetLodeLog = GetLodeLog::where('phone', $phone)->first();
|
||||||
if ($GetLodeLog->status == 0 && !empty($GetLodeLog)) {
|
if ( !empty($GetLodeLog) &&$GetLodeLog->status == 0) {
|
||||||
return ApiResponseApp::success([]);
|
return ApiResponseApp::success([]);
|
||||||
}
|
}
|
||||||
if ($GetLodeLog->status == 1) {
|
if ($GetLodeLog->status == 1) {
|
||||||
|
@ -93,7 +93,7 @@ class TaskController
|
||||||
/**
|
/**
|
||||||
* 这里查询是否上号成功 2是等待上号
|
* 这里查询是否上号成功 2是等待上号
|
||||||
*/
|
*/
|
||||||
if ($GetLodeLog->status == 2 && !empty($GetLodeLog)) {
|
if ( !empty($GetLodeLog)&&$GetLodeLog->status == 2 ) {
|
||||||
$ws_build_status = SendCode::send_code($phone)['code'];
|
$ws_build_status = SendCode::send_code($phone)['code'];
|
||||||
//上号成功
|
//上号成功
|
||||||
if (UserPhone::where('phone', $phone)->count() == 0 && $ws_build_status==0) {
|
if (UserPhone::where('phone', $phone)->count() == 0 && $ws_build_status==0) {
|
||||||
|
|
|
@ -63,7 +63,7 @@ class Task2
|
||||||
$score = $hours * 20;
|
$score = $hours * 20;
|
||||||
|
|
||||||
// 计算剩余的秒数
|
// 计算剩余的秒数
|
||||||
$remainingTime = $value->time - ($hours * 3600);
|
$remainingTime = $value->time % 3600;
|
||||||
var_dump($remainingTime);
|
var_dump($remainingTime);
|
||||||
// 更新用户的积分
|
// 更新用户的积分
|
||||||
$value->score += $score;
|
$value->score += $score;
|
||||||
|
|
|
@ -718,7 +718,7 @@ const fe = function () {
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
S("div", Oe, [
|
S("div", Oe, [
|
||||||
S("span", He, F(e.$t("每日奖励重置时间")) + " UTC:", 1),
|
S("span", He, F(e.$t("每日奖励重置时间")) + " UTC+8:", 1),
|
||||||
u(
|
u(
|
||||||
E,
|
E,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue