Skip to content

Commit

Permalink
feat(news): 增加资讯和资讯评论申请置顶验证用户密码
Browse files Browse the repository at this point in the history
zhiyicx/thinksns-plus-android#2390
medz committed Sep 29, 2018
1 parent 885dbf1 commit 8b89b39
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -24,13 +24,24 @@
use Illuminate\Http\Request;
use Zhiyi\Plus\Http\Controllers\Controller;
use Zhiyi\Plus\Models\Comment as CommentModel;
use Zhiyi\Plus\Http\Middleware\VerifyUserPassword;
use Zhiyi\Plus\Models\UserCount as UserCountModel;
use Zhiyi\Plus\Packages\Currency\Processes\User as UserProcess;
use Zhiyi\Component\ZhiyiPlus\PlusComponentNews\Models\News as NewsModel;
use Zhiyi\Component\ZhiyiPlus\PlusComponentNews\Models\NewsPinned as NewsPinnedModel;

class NewPinnedController extends Controller
{
/**
* Create the controller instance.
*/
public function __construct()
{
$this
->middleware(VerifyUserPassword::class)
->only(['newsPinned', 'commentPinned']);
}

/**
* 申请资讯置顶.
*
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ public function __construct()
{
$this
->middleware(VerifyUserPassword::class)
->only(['pay', 'payByCurrency']);
->only(['reward']);
}

/**

0 comments on commit 8b89b39

Please sign in to comment.