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
69c4b659
authored
Sep 03, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
暂存
parent
73c1fb7f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
.env
app/Http/Services/DealImageService.php
app/Http/routes.php
config/field.php
.env
View file @
69c4b659
...
...
@@ -158,4 +158,4 @@ TAG_URL=http://192.168.1.18:32581
SKIP_SEND_EMAIL=true
FILE_SERVER_URL=http://fil
e.liexindev.net
IMAGE_SERVER_URL=http://imag
e.liexindev.net
app/Http/Services/DealImageService.php
View file @
69c4b659
...
...
@@ -23,7 +23,7 @@ class DealImageService
public
static
function
checkImage
(
$link
)
{
if
(
strpos
(
$link
,
'img.ichunt.com'
)
!==
false
)
{
if
(
strpos
(
$link
,
'img.ichunt.com'
)
!==
false
||
strpos
(
$link
,
'file.ichunt.com'
)
!==
false
||
strpos
(
$link
,
'file.liexindev.com'
)
!==
false
)
{
return
$link
;
}
else
{
return
''
;
...
...
@@ -208,7 +208,7 @@ class DealImageService
file_put_contents
(
$path
,
$contents
);
//然后上传到图片服务器
$response
=
$client
->
request
(
'POST'
,
env
(
'
FIL
E_SERVER_URL'
)
.
'/uploadFile?sys_type=5&create_uid=1000'
,
[
$response
=
$client
->
request
(
'POST'
,
env
(
'
IMAG
E_SERVER_URL'
)
.
'/uploadFile?sys_type=5&create_uid=1000'
,
[
'multipart'
=>
[
[
'name'
=>
'file'
,
...
...
app/Http/routes.php
View file @
69c4b659
...
...
@@ -84,7 +84,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
\App\Http\Services\DealImageService
::
deal
SkuDetail
();
\App\Http\Services\DealImageService
::
deal
CmsImage
();
//\App\Http\Services\SupplierAddressService::initUnitedAddress();
//\App\Http\Services\DataService::checkSupplierBandAccount();
//(new CompanyService())->checkSupplierCompanyAndAddress(11042);
...
...
config/field.php
View file @
69c4b659
...
...
@@ -47,6 +47,10 @@ return [
1
=>
'国内现货'
,
2
=>
'国际现货'
,
3
=>
'猎芯期货'
,
4
=>
'询价现货'
,
5
=>
'原厂直售'
,
6
=>
'猎芯精选'
,
-
1
=>
'代购现货'
],
//SKU 标签
...
...
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