<?php
/**
 *------Create thems Model------
 *------SCWPHP  Version 1.0.0------
 *------Dev Model Jions------
 *------Create Time 2017-06-05 09:03:48------
 */
namespace App\Home\Model;
use \System\Model;

class Account_detailed extends Model {

	protected $table = 'account_detailed';
	public $timestamps = false;

	public function updateLoginStatus($identity) {
		$account_detailed = [
			'last_time' => date('Y-m-d H:i:s'),
			'last_ip' => GETIP(),
			'statuss' => 2,
		];
		$this->where("account_identity", $identity)->update($account_detailed);
	}
}
