From 529b8882a8502632b3a663895d1fd95662c84959 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Tue, 1 Oct 2019 03:58:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/HomeController.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index 8113c3010..c650e1e7e 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -61,7 +61,7 @@ class HomeController extends Controller if ($content) { $ticketData = json_decode($content, true); } - + $isExpired = false; $ticket = ''; if ($ticketData) { @@ -92,7 +92,7 @@ class HomeController extends Controller ]); } $ticket = $result['ticket']; - + file_put_contents(RUNTIME_PATH . 'Data/wechat_ticket', json_encode(['ticket' => $ticket, 'expired_at' => time() + 3600])); } @@ -149,7 +149,7 @@ class HomeController extends Controller } if ($status == 1) { - $downLink = 'itms-services://?action=download-manifest&url=' . "https://" . ltrim('.', $_SERVER["HTTP_HOST"] . M('GameSource', 'tab_')->where(array('game_id' => $gameId))->getField('org_plist_url')); + $downLink = 'itms-services://?action=download-manifest&url=' . "https://" . $_SERVER["HTTP_HOST"] . ltrim('.', M('GameSource', 'tab_')->where(array('game_id' => $gameId))->getField('org_plist_url')); } else { $downLink = get_apply_dow_url($gameId, $promoteId); } @@ -230,7 +230,7 @@ class HomeController extends Controller $map["game_id"] = $user["game_id"]; $map["user_id"] = $user["user_id"]; $map['sdk_version'] = $user['sdk_version']; - $res = $user_play -> where($map) -> find(); + $res = $user_play->where($map)->find(); if (empty($res)) { $user_entity = get_user_entity($user["user_id"]); $data["user_id"] = $user["user_id"]; @@ -254,7 +254,7 @@ class HomeController extends Controller $data["sdk_version"] = $user["sdk_version"]; $data['ppuid'] = $user['puid'] == '' ? 0 : $user['puid']; $data['check_time'] = time(); - $user_play -> add($data); + $user_play->add($data); } } }