Laravel 5 系列入门教程(四)【最适合中国人的 Laravel 教程】【完结】

2015-3-11   /   阅读数:76800   /   分类: Laravel

本教程示例代码见:https://github.com/johnlui/Learn-Laravel-5  

大家在任何地方卡住,最快捷的解决方式就是去看我的示例代码。

本文是本系列教程的完结篇,我们将一起给 Page 加入评论功能,让游客在前台页面可以查看、提交、回复评论,同时我们将在后台完善评论管理功能,可以删除、编辑评论。Page 和评论将使用 Eloquent 提供的“一对多关系”。最终,我们将得到一个个人博客系统的雏形,并布置一个大作业,供大家实战练习。

1. 初识 Eloquent

Laravel Eloquent ORM 是 Laravel 中非常重要的部分,也是 Laravel 能如此流行的原因之一。中文文档在:

1. http://laravel-china.org/docs/5.0/eloquent

2. http://www.golaravel.com/laravel/docs/5.0/eloquent/

在前面的教程中已经建立好的 learnlaravel5/app/Page.php 就是一个 Eloquent Model 类:

<?php namespace App;

use Illuminate\Database\Eloquent\Model;

class Page extends Model {

	//

}

若想进一步了解 Eloquent,推荐阅读系列文章:深入理解 Laravel Eloquent

2. 创建 Comment 模型

首先我们要新建一张表来存储 Comment,命令行运行:

php artisan make:model Comment

成功以后,修改 migration 文件 learnlaravel5/database/migrations/***_create_comments_table.php 的相应位置为:

Schema::create('comments', function(Blueprint $table)
{
	$table->increments('id');
	$table->string('nickname');
	$table->string('email')->nullable();
	$table->string('website')->nullable();
	$table->text('content')->nullable();
	$table->integer('page_id');
	$table->timestamps();
});

之后运行:

php artisan migrate

去数据库里瞧瞧,comments 表已经躺在那儿啦。

3. 建立“一对多关系”

修改 Page 模型:

<?php namespace App;

use Illuminate\Database\Eloquent\Model;

class Page extends Model {

  public function hasManyComments()
  {
    return $this->hasMany('App\Comment', 'page_id', 'id');
  }

}

搞定啦~ Eloquent 中模型间关系就是这么简单。

模型间关系中文文档:http://laravel-china.org/docs/5.0/eloquent#relationships

扩展阅读:深入理解 Laravel Eloquent(三)——模型间关系(关联)

4. 前台提交功能

修改 Comment 模型:

<?php namespace App;

use Illuminate\Database\Eloquent\Model;

class Comment extends Model {

  protected $fillable = ['nickname', 'email', 'website', 'content', 'page_id'];

}

增加一行路由:

Route::post('comment/store', 'CommentsController@store');

运行以下命令创建 CommentsController 控制器:

php artisan make:controller CommentsController

修改 CommentsController:

<?php namespace App\Http\Controllers;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use Illuminate\Http\Request;

use Redirect, Input;

use App\Comment;

class CommentsController extends Controller {

	public function store()
	{
		if (Comment::create(Input::all())) {
			return Redirect::back();
		} else {
			return Redirect::back()->withInput()->withErrors('评论发表失败!');
		}

	}

}

修改视图 learnlaravel5/resources/views/pages/show.blade.php:

@extends('_layouts.default')

@section('content')
  <h4>
    <a href="/">⬅️返回首页</a>
  </h4>

  <h1 style="text-align: center; margin-top: 50px;">{{ $page->title }}</h1>
  <hr>
  <div id="date" style="text-align: right;">
    {{ $page->updated_at }}
  </div>
  <div id="content" style="padding: 50px;">
    <p>
      {{ $page->body }}
    </p>
  </div>
  <div id="comments" style="margin-bottom: 100px;">

    @if (count($errors) > 0)
      <div class="alert alert-danger">
        <strong>Whoops!</strong> There were some problems with your input.<br><br>
        <ul>
          @foreach ($errors->all() as $error)
            <li>{{ $error }}</li>
          @endforeach
        </ul>
      </div>
    @endif

    <div id="new">
      <form action="{{ URL('comment/store') }}" method="POST">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <input type="hidden" name="page_id" value="{{ $page->id }}">
        <div class="form-group">
          <label>Nickname</label>
          <input type="text" name="nickname" class="form-control" style="width: 300px;" required="required">
        </div>
        <div class="form-group">
          <label>Email address</label>
          <input type="email" name="email" class="form-control" style="width: 300px;">
        </div>
        <div class="form-group">
          <label>Home page</label>
          <input type="text" name="website" class="form-control" style="width: 300px;">
        </div>
        <div class="form-group">
          <label>Content</label>
          <textarea name="content" id="newFormContent" class="form-control" rows="10" required="required"></textarea>
        </div>
        <button type="submit" class="btn btn-lg btn-success col-lg-12">Submit</button>
      </form>
    </div>

<script>
function reply(a) {
  var nickname = a.parentNode.parentNode.firstChild.nextSibling.getAttribute('data');
  var textArea = document.getElementById('newFormContent');
  textArea.innerHTML = '@'+nickname+' ';
}
</script>

    <div class="conmments" style="margin-top: 100px;">
      @foreach ($page->hasManyComments as $comment)

        <div class="one" style="border-top: solid 20px #efefef; padding: 5px 20px;">
          <div class="nickname" data="{{ $comment->nickname }}">
          @if ($comment->website)
            <a href="{{ $comment->website }}">
              <h3>{{ $comment->nickname }}</h3>
            </a>
          @else
            <h3>{{ $comment->nickname }}</h3>
          @endif
            <h6>{{ $comment->created_at }}</h6>
          </div>
          <div class="content">
            <p style="padding: 20px;">
              {{ $comment->content }}
            </p>
          </div>
          <div class="reply" style="text-align: right; padding: 5px;">
            <a href="#new" onclick="reply(this);">回复</a>
          </div>
        </div>

      @endforeach
    </div>
  </div>
@endsection

前台评论功能完成。

查看效果:

Image


Image

5. 后台管理功能

修改基础视图 learnlaravel5/resources/views/app.blade.php 为:

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Laravel</title>

	<link href="/css/app.css" rel="stylesheet">

	<!-- Fonts -->
  <link href='http://fonts.useso.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'>
</head>
<body>
	<nav class="navbar navbar-default">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
					<span class="sr-only">Toggle Navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="#">Learn Laravel 5</a>
			</div>

			<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
				<ul class="nav navbar-nav">
					<li><a href="/admin">后台首页</a></li>
				</ul>
				<ul class="nav navbar-nav">
					<li><a href="/admin/comments">管理评论</a></li>
				</ul>

				<ul class="nav navbar-nav navbar-right">
					@if (Auth::guest())
						<li><a href="/auth/login">Login</a></li>
						<li><a href="/auth/register">Register</a></li>
					@else
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{ Auth::user()->name }} <span class="caret"></span></a>
							<ul class="dropdown-menu" role="menu">
								<li><a href="/auth/logout">Logout</a></li>
							</ul>
						</li>
					@endif
				</ul>
			</div>
		</div>
	</nav>

	@yield('content')

	<!-- Scripts -->
	<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
	<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script>
</body>
</html>

修改后台路由组(增加了一行):

Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => 'auth'], function()
{
  Route::get('/', 'AdminHomeController@index');
  Route::resource('pages', 'PagesController');
  Route::resource('comments', 'CommentsController');
});

创建 Admin\CommentsController :

php artisan make:controller Admin/CommentsController

Admin/CommentsController 要有 查看所有、查看单个、POST更改、删除四个接口:

<?php namespace App\Http\Controllers\Admin;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use Illuminate\Http\Request;

use App\Comment;

use Redirect, Input;

class CommentsController extends Controller {

	public function index()
	{
		return view('admin.comments.index')->withComments(Comment::all());
	}

	public function edit($id)
	{
		return view('admin.comments.edit')->withComment(Comment::find($id));
	}

	public function update(Request $request, $id)
	{
		$this->validate($request, [
			'nickname' => 'required',
			'content' => 'required',
		]);
		if (Comment::where('id', $id)->update(Input::except(['_method', '_token']))) {
			return Redirect::to('admin/comments');
		} else {
			return Redirect::back()->withInput()->withErrors('更新失败!');
		}
	}

	public function destroy($id)
	{
		$comment = Comment::find($id);
		$comment->delete();

		return Redirect::to('admin/comments');
	}

}

接下来创建两个视图:

learnlaravel5/resources/views/admin/comments/index.blade.php:

@extends('app')

@section('content')
<div class="container">
  <div class="row">
    <div class="col-md-10 col-md-offset-1">
      <div class="panel panel-default">
        <div class="panel-heading">管理评论</div>

        <div class="panel-body">

        <table class="table table-striped">
          <tr class="row">
            <th class="col-lg-4">Content</th>
            <th class="col-lg-2">User</th>
            <th class="col-lg-4">Page</th>
            <th class="col-lg-1">编辑</th>
            <th class="col-lg-1">删除</th>
          </tr>
          @foreach ($comments as $comment)
            <tr class="row">
              <td class="col-lg-6">
                {{ $comment->content }}
              </td>
              <td class="col-lg-2">
                @if ($comment->website)
                  <a href="{{ $comment->website }}">
                    <h4>{{ $comment->nickname }}</h4>
                  </a>
                @else
                  <h3>{{ $comment->nickname }}</h3>
                @endif
                {{ $comment->email }}
              </td>
              <td class="col-lg-4">
                <a href="{{ URL('pages/'.$comment->page_id) }}" target="_blank">
                  {{ App\Page::find($comment->page_id)->title }}
                </a>
              </td>
              <td class="col-lg-1">
                <a href="{{ URL('admin/comments/'.$comment->id.'/edit') }}" class="btn btn-success">编辑</a>
              </td>
              <td class="col-lg-1">
                <form action="{{ URL('admin/comments/'.$comment->id) }}" method="POST" style="display: inline;">
                  <input name="_method" type="hidden" value="DELETE">
                  <input type="hidden" name="_token" value="{{ csrf_token() }}">
                  <button type="submit" class="btn btn-danger">删除</button>
                </form>
              </td>
            </tr>
          @endforeach
        </table>


        </div>
      </div>
    </div>
  </div>
</div>
@endsection

learnlaravel5/resources/views/admin/comments/edit.blade.php:

@extends('app')

@section('content')
<div class="container">
  <div class="row">
    <div class="col-md-10 col-md-offset-1">
      <div class="panel panel-default">
        <div class="panel-heading">编辑评论</div>

        <div class="panel-body">

          @if (count($errors) > 0)
            <div class="alert alert-danger">
              <strong>Whoops!</strong> There were some problems with your input.<br><br>
              <ul>
                @foreach ($errors->all() as $error)
                  <li>{{ $error }}</li>
                @endforeach
              </ul>
            </div>
          @endif

          <form action="{{ URL('admin/comments/'.$comment->id) }}" method="POST">
            <input name="_method" type="hidden" value="PUT">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
            <input type="hidden" name="page_id" value="{{ $comment->page_id }}">
            Nickname: <input type="text" name="nickname" class="form-control" required="required" value="{{ $comment->nickname }}">
            <br>
            Email:
            <input type="text" name="email" class="form-control" required="required" value="{{ $comment->email }}">
            <br>
            Website:
            <input type="text" name="website" class="form-control" required="required" value="{{ $comment->website }}">
            <br>
            Content:
            <textarea name="content" rows="10" class="form-control" required="required">{{ $comment->content }}</textarea>
            <br>
            <button class="btn btn-lg btn-info">提交修改</button>
          </form>

        </div>
      </div>
    </div>
  </div>
</div>
@endsection

后台管理功能完成,查看效果:

Image


Image

6. 大作业

依赖于 Page 的评论功能已经全部完成,个人博客系统雏形诞生。在本系列教程的最后,布置一个大作业:构建出 Article 的前后台,并且加上 Article 与 Comment 的一对多关系,加入评论和评论管理功能。在做这个大作业的过程中,你将会反复地回头去看前面的教程,反复地阅读中文文档,会仔细阅读我的代码,等你完成大作业的时候,Laravel 5 就真正入门啦~~


教程(四)代码快照:https://github.com/johnlui/Learn-Laravel-5/archive/tutorial_4.zip


Laravel 5 系列入门教程【最适合中国人的 Laravel 教程】到此结束,谢谢大家!

WRITTEN BY

avatar

评论:

flower
2015-08-24 14:16
laravel4 中 workbench的独立包,怎么在laravel5中,使用
在laravel5中怎么创建独立包
dafa
2015-08-11 17:11
已经完成!发现还是存在一些问题的。比如没有分页,默认选择的php版本为 5.4 ,在编辑器中不会自动use 不存在的类。

2015-08-10 14:42
博主你好,我用larael自带的 $password=Hash::check('123456');加密的字符串插入数据库,登陆的时候总是提示密码错误,在研究发现,同一个明码123456,加密后的字符串总是不同的,请问有什么好的解决方案吗
试试
2015-10-16 11:14
@陈:试试 Hash::make
Snails
2015-08-10 13:23
两个问题:
楼主,你好。.请问(1)如何加载静态css资源呢?(2)为什么我的返回主页直接会跳到/var/www/下
胖子
2015-08-31 15:19
@Snails:<link href="{{ URL('/css/app.css') }}" rel="stylesheet">
我是这样加载CSS样式的
你应该把里面所有  href="XXXX"的样式改为上面的那种
jokee
2016-03-31 20:00
@胖子:确实可以了,多谢
demon_cry
2015-08-08 17:55
为什么model不专门放到一个目录中呢,如果代码稍微多点就会很乱吧?
gux
2015-08-06 20:47
非常感谢您的教程,提个小小的建议,手机下的代码样式不换行,看不全,方便的话能不能改一下,谢谢大神的教程
陈祥
2015-08-05 10:31
请问老师,controller目录下的commentscontroller和controller/admin目录下的commentscontroller有什么区别呢?可以合并到一起吗?
xp
2015-08-18 22:35
@陈祥:前台控制器和后台控制器呗
菜鸟
2015-07-07 17:15
我想写一个立即购买的方法,不知怎么写,还请大神赐教
flyfish
2015-06-20 00:15
page跟artical 有啥区别么????
zerdon
2015-06-29 16:13
@flyfish:page是单页,article 是文章
ZellDincht
2015-09-10 16:57
@zerdon:单页和文章有什么区别?
flyfish
2015-06-19 23:02
<a href="/">⬅️返回首页</a>改为<a href="{{ URL() }}">⬅️返回首页</a>  这里面的图标不知道为什么不显示出来 有什么特殊的字体文件么?
laucie
2015-06-12 13:39
不错啊 最近在学laravel 请问大神 PHP的学习路线是什么样的啊
Xander
2015-06-07 22:29
非常好,跟着走了一遍,都成功了。。回头再吧作业搞下,
初学者
2015-06-02 15:33
谢谢博主~受益良多
初学者
2015-05-28 19:14
public function destroy($id)
这个方法 还剩多条记录的时候可以调用到。
最后一条记录删除的时候 调用不到。也没报错 ,就是数据没删掉
york
2015-05-27 15:56
为啥我 的数据都有了就是样式没有,全部左边显示了
JohnLui
2015-05-28 14:57
@york:静态资源没载入呗
flyfish
2015-06-21 17:51
@york:路径不对 要加URL()
trey
2015-05-19 09:37
laravel 的 artisan 命令行 我可以单独安装嘛?  

在别的框架利使用这个。
JohnLui
2015-05-19 11:00
@trey:Artisan 是跟 Laravel 强耦合的代码生成工具,顶部的类引入,甚至路径都是写死的,不能用于其他框架。
laravel初学者_
2015-05-18 15:06
大神您好!照着您的步骤出现了
NotFoundHttpException in compiled.php line 7793:


    in compiled.php line 7793
    at RouteCollection->match(object(Request)) in compiled.php line 7066
    at Router->findRoute(object(Request)) in compiled.php line 7038
    at Router->dispatchToRoute(object(Request)) in compiled.php line 7030
    at Router->dispatch(object(Request)) in compiled.php line 1989
    at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in compiled.php line 9067
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2492
    at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
    at VerifyCsrfToken->handle(object(Request), object(Closure)) in compiled.php line 9059
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12216
    at ShareErrorsFromSession->handle(object(Request), object(Closure)) in compiled.php line 9059
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 10917
    at StartSession->handle(object(Request), object(Closure)) in compiled.php line 9059
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 11922
    at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in compiled.php line 9059
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 11871
    at EncryptCookies->handle(object(Request), object(Closure)) in compiled.php line 9059
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2532
    at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in compiled.php line 9059
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in compiled.php line 9050
    at Pipeline->then(object(Closure)) in compiled.php line 1945
    at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 1932
    at Kernel->handle(object(Request)) in index.php line 53

这个是什么原因 都对齐了的啊
laravel初学者_
2015-05-19 09:33
@laravel初学者_:已经弄好了 谢谢
wyl206
2015-08-13 10:01
@laravel初学者_:遇到了同样的问题,怎么弄好的,求教?
wyl206
2015-08-25 11:37
@wyl206:已清楚,说明没有相关的文件或者路由,找摸下路由就知道了。
求救3
2015-05-17 15:09
大神,出现中文乱码如何解决,谢谢。
yzero
2015-07-15 20:11
@求救3:你好。你的问题直接用notepad++进行格式编码转为utf8就可以了
dunkbird
2015-05-14 18:07
前台评论提交的时候,也就是调用CommentsController的store方法时出,token的错误,怎么回事啊?
MassAssignmentException in compiled.php line 9345:
_token
in compiled.php line 9345
at Model->fill(array('_token' => 'eY0JuuLshjeNYFiC41nUAX03JfdK18d62cc6IV1g', 'page_id' => '9', 'nickname' => 'sdfas', 'email' => 'sfasd@ibm.com', 'website' => 'dfasdf', 'content' => 'sadfasdf')) in compiled.php line 9275
at Model->__construct(array('_token' => 'eY0JuuLshjeNYFiC41nUAX03JfdK18d62cc6IV1g', 'page_id' => '9', 'nickname' => 'sdfas', 'email' => 'sfasd@ibm.com', 'website' => 'dfasdf', 'content' => 'sadfasdf')) in compiled.php line 9393
at Model::create(array('_token' => 'eY0JuuLshjeNYFiC41nUAX03JfdK18d62cc6IV1g', 'page_id' => '9', 'nickname' => 'sdfas', 'email' => 'sfasd@ibm.com', 'website' => 'dfasdf', 'content' => 'sadfasdf')) in CommentsController.php line 42
at CommentsController->store()
at call_user_func_array(array(object(CommentsController), 'store'), array()) in compiled.php line 8287
at Controller->callAction('store', array()) in compiled.php line 8354
at ControllerDispatcher->call(object(CommentsController), object(Route), 'store') in compiled.php line 8333
at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 8952
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 8935
at Pipeline->then(object(Closure)) in compiled.php line 8334
at ControllerDispatcher->callWithinStack(object(CommentsController), object(Route), object(Request), 'store') in compiled.php line 8320
at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\CommentsController', 'store') in compiled.php line 7317
at Route->runWithCustomDispatcher(object(Request)) in compiled.php line 7288
at Route->run(object(Request)) in compiled.php line 6954
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 8952
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 8935
at Pipeline->then(object(Closure)) in compiled.php line 6955
at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 6944
at Router->dispatchToRoute(object(Request)) in compiled.php line 6929
at Router->dispatch(object(Request)) in compiled.php line 1935
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 8952
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2438
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken->handle(object(Request), object(Closure)) in compiled.php line 8944
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12083
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in compiled.php line 8944
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 10785
at StartSession->handle(object(Request), object(Closure)) in compiled.php line 8944
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 11789
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in compiled.php line 8944
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 11738
at EncryptCookies->handle(object(Request), object(Closure)) in compiled.php line 8944
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2478
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in compiled.php line 8944
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 8935
at Pipeline->then(object(Closure)) in compiled.php line 1891
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 1880
at Kernel->handle(object(Request)) in index.php line 53
dunkbird
2015-05-14 18:33
@dunkbird:还是没有解决,等站长的出现了。
Num116
2015-06-04 09:13
@dunkbird:是App\Comment.php里的代码打错了,之前我也碰到这个,$fillable打错了出现这个错误,找了好久
dunkbird
2015-05-14 16:39

超赞的文章,感谢!!!
博主的这个网站是用的哪个东西做出来的,是开源的么?
记得有个类似的这样的网站来着,可否告诉我名字?
JohnLui
2015-05-14 16:48
@dunkbird: 底下写的有 Powered by Emlog
dunkbird
2015-05-14 18:35
@JohnLui:多谢!
看看,我也把我的个人主页改成你说的这个。

发表评论:

© 2011-2019 岁寒  |  Powered by Emlog