Commit 69c4b659 by 杨树贤

暂存

parent 73c1fb7f
......@@ -158,4 +158,4 @@ TAG_URL=http://192.168.1.18:32581
SKIP_SEND_EMAIL=true
FILE_SERVER_URL=http://file.liexindev.net
IMAGE_SERVER_URL=http://image.liexindev.net
......@@ -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('FILE_SERVER_URL') . '/uploadFile?sys_type=5&create_uid=1000', [
$response = $client->request('POST', env('IMAGE_SERVER_URL') . '/uploadFile?sys_type=5&create_uid=1000', [
'multipart' => [
[
'name' => 'file',
......
......@@ -84,7 +84,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route::match(['get', 'post'], '/test', function () {
\App\Http\Services\DealImageService::dealSkuDetail();
\App\Http\Services\DealImageService::dealCmsImage();
//\App\Http\Services\SupplierAddressService::initUnitedAddress();
//\App\Http\Services\DataService::checkSupplierBandAccount();
//(new CompanyService())->checkSupplierCompanyAndAddress(11042);
......
......@@ -47,6 +47,10 @@ return [
1 => '国内现货',
2 => '国际现货',
3 => '猎芯期货',
4 => '询价现货',
5 => '原厂直售',
6 => '猎芯精选',
-1 => '代购现货'
],
//SKU 标签
......
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