Commit 9e3c1e78 by 杨树贤

检查数据

parent ab387899
...@@ -660,6 +660,18 @@ class DataService ...@@ -660,6 +660,18 @@ class DataService
})->export('csv'); })->export('csv');
} }
public static function getSpuAttrs()
{
$spuId = request()->input('spu_id');
$mongo = DB::connection('mongo')->table('spu_attrs2')->where('spu_id', (int)$spuId)->first();
dd($mongo);
}
public static function importBrandAndMapping()
{
}
} }
...@@ -84,7 +84,8 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function () ...@@ -84,7 +84,8 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
}); });
Route::match(['get', 'post'], '/test', function () { Route::match(['get', 'post'], '/test', function () {
\App\Http\Services\DealImageService::replaceCmsImage(); \App\Http\Services\DataService::getSpuAttrs();
//\App\Http\Services\DealImageService::replaceCmsImage();
//\App\Http\Services\SupplierAddressService::initUnitedAddress(); //\App\Http\Services\SupplierAddressService::initUnitedAddress();
//\App\Http\Services\DataService::checkSupplierBandAccount(); //\App\Http\Services\DataService::checkSupplierBandAccount();
//(new CompanyService())->checkSupplierCompanyAndAddress(11042); //(new CompanyService())->checkSupplierCompanyAndAddress(11042);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment