删除调试信息

master
ELF 5 years ago
parent 1afa561d9b
commit 606903c56c

@ -10,6 +10,7 @@ use Com\WechatAuth;
use App\Model\UserModel; use App\Model\UserModel;
use App\Model\PointShopRecordModel; use App\Model\PointShopRecordModel;
use Qiniu\json_decode; use Qiniu\json_decode;
use Think\Log;
class UserController extends BaseController class UserController extends BaseController
{ {
@ -1186,20 +1187,15 @@ class UserController extends BaseController
$data["sdk_version"] = $request["sdk_version"]; $data["sdk_version"] = $request["sdk_version"];
$data['play_ip'] = get_client_ip(); $data['play_ip'] = get_client_ip();
$data['pipuid'] = $user_data['puid']; $data['pipuid'] = $user_data['puid'];
if ($res['id']>0) {
$user_play -> save($data); Log::write('save_user_play_info:' . date('Y-m-d H:i:s') . ' ---- ' . json_encode($data), 'INFO');
if ($res['id']>0) {
$user_play->save($data);
$this->updateLoginRecord($data); $this->updateLoginRecord($data);
} else { } else {
$user_play->add($data);
$user_play -> add($data);
$this->updateLoginRecord($data); $this->updateLoginRecord($data);
} }
$this -> set_message(200, "success", "成功"); $this -> set_message(200, "success", "成功");
@ -1215,7 +1211,6 @@ class UserController extends BaseController
* *
*/ */
private function updateLoginRecord($userPlay) { private function updateLoginRecord($userPlay) {
//var_dump($userPlay);die;
$map = array( $map = array(
'game_id' => $userPlay['game_id'], 'game_id' => $userPlay['game_id'],
'user_id' => $userPlay['user_id'], 'user_id' => $userPlay['user_id'],
@ -1235,8 +1230,7 @@ class UserController extends BaseController
'id'=>$userLoginRecordData['id'] 'id'=>$userLoginRecordData['id']
); );
$userLoginRecordModel->save($data); return $userLoginRecordModel->save($data);
} }

Loading…
Cancel
Save