Commit aeb5b301 by 杨树贤

放宽同步erp限制

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