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
9af5b404
authored
Jul 21, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
temp
parent
a536b7ff
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
3 deletions
.env
app/Http/Services/DataService.php
app/Http/routes.php
app/Model/Purchase/PurchaseOrderModel.php
config/database.php
.env
View file @
9af5b404
...
...
@@ -48,6 +48,13 @@ DB_USERNAME_YUNXIN=liexin_yunxin
DB_PASSWORD_YUNXIN=liexin_yunxin#zsyM
DB_YUNXIN_PORT=3306
//采购 MYSQL配置
DB_HOST_PURCHASE=192.168.1.234
DB_DATABASE_PURCHASE=liexin_purchase
DB_USERNAME_PURCHASE=liexin_purchase
DB_PASSWORD_PURCHASE=liexin_purchase#zsyM
DB_PURCHASE_PORT=3306
//联营sku数据库01
DB_SKU_HOST=192.168.1.234
DB_SKU_DATABASE=liexin_sku_1
...
...
app/Http/Services/DataService.php
View file @
9af5b404
...
...
@@ -8,6 +8,7 @@ use App\Http\Transformers\SupplierTransformer;
use
App\Model\DepartmentModel
;
use
App\Model\IntracodeModel
;
use
App\Model\LogModel
;
use
App\Model\Purchase\PurchaseOrderModel
;
use
App\Model\RedisModel
;
use
App\Model\SkuUploadLogModel
;
use
App\Model\StandardBrandModel
;
...
...
@@ -800,6 +801,5 @@ class DataService
->
update
([
'yunxin_channel_uid'
=>
$lastEncoded
]);
}
}
}
}
\ No newline at end of file
app/Http/routes.php
View file @
9af5b404
...
...
@@ -62,5 +62,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
(
new
\App\Http\Services\DataService
())
->
syncFootstoneSkuUploadEncoded
(
false
);
(
new
\App\Http\Services\DataService
())
->
exportSupplierPurchaseChannelUser
(
'admin'
);
});
app/Model/Purchase/PurchaseOrderModel.php
0 → 100644
View file @
9af5b404
<?php
namespace
App\Model\Purchase
;
use
Illuminate\Database\Eloquent\Model
;
class
PurchaseOrderModel
extends
Model
{
protected
$connection
=
'purchase'
;
protected
$table
=
'purchase_order'
;
public
$timestamps
=
false
;
}
config/database.php
View file @
9af5b404
...
...
@@ -196,6 +196,21 @@ return [
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
],
'purchase'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_HOST_PURCHASE'
,
''
),
'database'
=>
env
(
'DB_DATABASE_PURCHASE'
,
''
),
'username'
=>
env
(
'DB_USERNAME_PURCHASE'
,
''
),
'password'
=>
env
(
'DB_PASSWORD_PURCHASE'
,
''
),
'port'
=>
env
(
'DB_PURCHASE_PORT'
,
3306
),
'charset'
=>
'utf8'
,
'collation'
=>
'utf8_general_ci'
,
'prefix'
=>
'lie_'
,
'strict'
=>
false
,
],
'rabbitmq'
=>
[
'driver'
=>
'rabbitmq'
,
'host'
=>
env
(
'RABBITMQ_HOST'
,
'127.0.0.1'
),
...
...
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