Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
aeb5b301
authored
Oct 14, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
放宽同步erp限制
parent
c68701c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
15 deletions
app/Http/Services/SyncSupplierService.php
app/Http/routes.php
app/Http/Services/SyncSupplierService.php
View file @
aeb5b301
...
...
@@ -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
;
...
...
app/Http/routes.php
View file @
aeb5b301
...
...
@@ -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);
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment