Commit 67ece528 by 杨树贤

初始化特定优惠券过期时间

parent af8e1994
...@@ -1654,4 +1654,17 @@ class DataService ...@@ -1654,4 +1654,17 @@ class DataService
} }
} }
public function initCouponTime()
{
\DB::connection('liexin')->table('coupon')->whereIn('coupon_sn', [
'SN2023082898101485',
'SN2023082856541005',
'SN2023082898101515',
'SN2023082849501019',
'SN2023082848531005',
])->update([
'effect_end_time' => 1704038400
]);
}
} }
...@@ -82,7 +82,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function () ...@@ -82,7 +82,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
Route::match(['get', 'post'], '/test', function () { Route::match(['get', 'post'], '/test', function () {
(new \App\Http\Services\DataService())->initBrandData(); (new \App\Http\Services\DataService())->initCouponTime();
// $data = [ // $data = [
// 'supplier_code' => 'L0015420', // 'supplier_code' => 'L0015420',
// 'brand_id' => 0, // 'brand_id' => 0,
......
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