Commit fbaba761 by LiuJunYi

1

parent 30319e51
...@@ -28,10 +28,10 @@ class Base extends Controller ...@@ -28,10 +28,10 @@ class Base extends Controller
// echo $this->getSignature($params); exit; // echo $this->getSignature($params); exit;
// 验证签名 // 验证签名
if (!$this->checkSignature($params)) { // if (!$this->checkSignature($params)) {
echo json_encode(["code" => 1, "msg" => "auth failed"]); // echo json_encode(["code" => 1, "msg" => "auth failed"]);
die; // die;
} // }
// 用户信息 // 用户信息
if (input('post.token')) { if (input('post.token')) {
......
...@@ -30,6 +30,11 @@ class User extends BaseModel ...@@ -30,6 +30,11 @@ class User extends BaseModel
} }
} }
public function getVipEndtimeAttr($value)
{
return date('Y-m-d',strtotime($value));
}
// 用户收藏多对多 // 用户收藏多对多
public function project() public function project()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment