更新
This commit is contained in:
parent
3fc14e25ce
commit
4c68e54391
@ -193,6 +193,7 @@ class IndexController extends BaseApiController
|
|||||||
public function notifyAuthentication()
|
public function notifyAuthentication()
|
||||||
{
|
{
|
||||||
$parmas = Request()->param();
|
$parmas = Request()->param();
|
||||||
|
halt($parmas);
|
||||||
Log::error('notifyAuthentication', $parmas);
|
Log::error('notifyAuthentication', $parmas);
|
||||||
if ($parmas) {
|
if ($parmas) {
|
||||||
Company::where('id',$parmas['id'])->update(['is_authentication'=>1]);
|
Company::where('id',$parmas['id'])->update(['is_authentication'=>1]);
|
||||||
|
7
app/api/route/index.php
Normal file
7
app/api/route/index.php
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
use think\facade\Route;
|
||||||
|
|
||||||
|
Route::group('v1', function () {
|
||||||
|
Route::post('/notify_authentication','/Index/notifyAuthentication');
|
||||||
|
Route::post('/notify_property','/Index/notifyProperty');
|
||||||
|
})->prefix('api');
|
@ -35,6 +35,4 @@ Route::rule('crontab', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Route::post('/notify_url', IndexController::class . '@notifyUrl');
|
Route::post('/notify_url', IndexController::class . '@notifyUrl');
|
||||||
Route::post('/v1/notify_property',IndexController::class . '@notifyProperty');
|
|
||||||
Route::any('/v1/notify_authentication',IndexController::class . '@notifyAuthentication');
|
|
||||||
Route::get('/api/junziqian/download_file',JunziqianController::class . '@download_file');
|
Route::get('/api/junziqian/download_file',JunziqianController::class . '@download_file');
|
Loading…
x
Reference in New Issue
Block a user