Commit aeb5b301 by 杨树贤

放宽同步erp限制

parent c68701c2
...@@ -30,10 +30,6 @@ class SyncSupplierService ...@@ -30,10 +30,6 @@ class SyncSupplierService
if (empty($supplier)) { if (empty($supplier)) {
return false; return false;
} }
//只推送禁用和启用状态的
if (!in_array($supplier['status'], [2, -2, -3, 0])) {
return true;
}
if (!$supplier['group_code']) { if (!$supplier['group_code']) {
return true; return true;
......
...@@ -84,15 +84,10 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function () ...@@ -84,15 +84,10 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
}); });
Route::match(['get', 'post'], '/test', function () { Route::match(['get', 'post'], '/test', function () {
\App\Http\Services\DataService::updateIedgeSkuName(); //$goodsId = request()->input('goods_id');
//\App\Http\Services\DealImageService::replaceCmsImage(); //if (empty($goodsId)) {
//\App\Http\Services\SupplierAddressService::initUnitedAddress(); // return 'goods id null';
//\App\Http\Services\DataService::checkSupplierBandAccount(); //}
//(new CompanyService())->checkSupplierCompanyAndAddress(11042); // $res = curl('http://47.106.60.211:60014/synchronization?goods_id='.$goodsId.'&show_stock=1&show_attr=1,show_sku_detail=1&show_spu_extra');
//\App\Model\SupplierChannelModel::where('supplier_id', 11042)->update([ // dd($res);
// 'supplier_address' => 'xx测试猎芯123xx'
//]);
//$redis = new RedisModel();
//dd($redis->hget('api_coupon',476));
//\App\Http\Services\DataService::repairAccount();
}); });
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