改进 推介系统和路由

This commit is contained in:
iVampireSP.com 2023-02-23 09:48:01 +08:00
parent 381fcf3938
commit a5a1c7aad5
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 9 additions and 8 deletions

View File

@ -91,10 +91,12 @@
<p>实人认证时间: {{ $user->real_name_verified_at }}</p>
@endif
<p>
营销邮件订阅: <a
onclick="update_receive_marketing_email()" style="cursor: pointer"
class="text-decoration-underline"></a>
<span id="receive_marketing_email_append_text"></span>
营销邮件订阅: <span class="user-select-none">
<a
onclick="update_receive_marketing_email()" style="cursor: pointer"
class="text-decoration-underline"></a>
<span id="receive_marketing_email_append_text"></span>
</span>
</p>
</div>
<div class="modal-footer">
@ -116,7 +118,7 @@ function update_receive_marketing_email_text() {
if (receive_marketing_email) {
ele.innerText = '是';
receive_marketing_email_append_text.innerText = ',如果有打扰到您,请取消订阅。';
receive_marketing_email_append_text.innerText = '';
} else {
receive_marketing_email_append_text.innerText = '。创业不易,感谢理解。';
ele.innerText = '否';

View File

@ -56,7 +56,7 @@ function () {
Route::delete('deleteAll', [AuthController::class, 'deleteAll'])->name('token.delete_all');
Route::patch('update', [AuthController::class, 'update'])->name('users.update');
Route::withoutMiddleware('verified')->patch('user', [AuthController::class, 'update'])->name('users.update');
Route::post('sudo/exit', [AuthController::class, 'exitSudo'])->name('sudo.exit');
/* End 账户区域 */
@ -86,6 +86,7 @@ function () {
/* Start 推介 */
Route::resource('affiliates', AffiliateController::class)->only(['index', 'create', 'store', 'destroy']);
Route::middleware('guest')->withoutMiddleware(['verified', 'auth:web'])->get('affiliates/{affiliate:uuid}', [AffiliateController::class, 'show'])->name('affiliates.show');
/* End 推介 */
/* Start 匿名登录 */
@ -103,5 +104,3 @@ function () {
// 维护
Route::get('maintenance', MaintenanceController::class)->name('maintenances');
Route::middleware('guest')->get('affiliates/{affiliate:uuid}', [AffiliateController::class, 'show'])->name('affiliates.show');