Commit 9af5b404 by 杨树贤

temp

parent a536b7ff
......@@ -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
......
......@@ -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
......@@ -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');
});
<?php
namespace App\Model\Purchase;
use Illuminate\Database\Eloquent\Model;
class PurchaseOrderModel extends Model
{
protected $connection='purchase';
protected $table='purchase_order';
public $timestamps = false;
}
......@@ -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'),
......
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