每日自动推送未处理供应商,增加处理截止时间和截图上传。 Co-authored-by: 苏木 <594326199@qq.com> Co-committed-by: 苏木 <594326199@qq.com>
48 lines
1.9 KiB
PHP
48 lines
1.9 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\Integrations\EsignCallbacks;
|
|
use App\Http\Controllers\Onboarding\CourierOnboardingForms;
|
|
use App\Http\Controllers\Business\SupplierNegativeAlertDingTalkForms;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Livewire\Livewire;
|
|
|
|
/**
|
|
* 'web' middleware applied to all routes
|
|
*
|
|
* @see \App\Providers\Route::mapWebRoutes
|
|
*/
|
|
|
|
Route::post('integrations/esign/callback', EsignCallbacks::class)
|
|
->middleware('throttle:120,1')
|
|
->name('integrations.esign.callback');
|
|
|
|
// 快递入驻:快递方扫码打开的免登录填报页,凭链接里的随机 token 访问。
|
|
Route::get('onboarding/courier/{token}', [CourierOnboardingForms::class, 'show'])
|
|
->middleware('throttle:60,1')
|
|
->where('token', '[A-Za-z0-9]{32,64}')
|
|
->name('courier-onboarding.form');
|
|
Route::post('onboarding/courier/{token}', [CourierOnboardingForms::class, 'update'])
|
|
->middleware('throttle:20,1')
|
|
->where('token', '[A-Za-z0-9]{32,64}')
|
|
->name('courier-onboarding.update');
|
|
|
|
Route::get('supplier-negative-alert/task/{token}', [SupplierNegativeAlertDingTalkForms::class, 'show'])
|
|
->middleware('throttle:60,1')
|
|
->where('token', '[A-Za-z0-9]{64}')
|
|
->name('supplier-negative-alert.task');
|
|
Route::post('supplier-negative-alert/task/{token}', [SupplierNegativeAlertDingTalkForms::class, 'update'])
|
|
->middleware('throttle:20,1')
|
|
->where('token', '[A-Za-z0-9]{64}')
|
|
->name('supplier-negative-alert.task.update');
|
|
Route::get('supplier-negative-alert/task/{token}/attachments/{attachment}', [SupplierNegativeAlertDingTalkForms::class, 'attachment'])
|
|
->middleware('throttle:120,1')
|
|
->where('token', '[A-Za-z0-9]{64}')
|
|
->whereNumber('attachment')
|
|
->name('supplier-negative-alert.task.attachment');
|
|
|
|
Livewire::setScriptRoute(function ($handle) {
|
|
$base = request()->getBasePath();
|
|
|
|
return Route::get($base . '/vendor/livewire/livewire/dist/livewire.min.js', $handle);
|
|
});
|