改进
This commit is contained in:
parent
bbc84f23ae
commit
f50ebf419b
@ -4,6 +4,7 @@
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\User;
|
||||
use App\Notifications\User\UserNotification;
|
||||
use App\Support\RealNameSupport;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
@ -27,7 +28,9 @@ public function verify(Request $request): JsonResponse
|
||||
$user->id_card = $result['id_card'];
|
||||
$user->save();
|
||||
|
||||
$user->reduce('0.7', '实名认证费用。');
|
||||
$user->reduce((string)config('settings.supports.real_name.price'), '实名认证费用。');
|
||||
|
||||
$user->notify(new UserNotification('再次欢迎您!', '再次欢迎您!您的实人认证已通过。', true));
|
||||
|
||||
return $this->success('实名认证成功。');
|
||||
}
|
||||
|
@ -31,6 +31,7 @@
|
||||
'code' => env('SUPPORT_REAL_NAME_APP_CODE'),
|
||||
'min_age' => env('SUPPORT_REAL_NAME_MIN_AGE', 13),
|
||||
'max_age' => env('SUPPORT_REAL_NAME_MAX_AGE', 60),
|
||||
'price' => env('SUPPORT_REAL_NAME_PRICE', 0.7),
|
||||
],
|
||||
],
|
||||
'forum' => [
|
||||
|
Loading…
Reference in New Issue
Block a user