Browse Source

审核通过给一周时间

shish 4 tháng trước cách đây
mục cha
commit
9be7aeb7e2

+ 4 - 0
biz-ghs/merchant/services/MerchantService.php

@@ -114,6 +114,8 @@ class MerchantService extends BaseService
 
         MerchantInitClass::add(['sjId' => $sjId]);
 
+        //给一周时间
+        $deadTime = time()+604800;
         //创建门店
         $shopData = [
             'shopName' => '首店',
@@ -139,6 +141,8 @@ class MerchantService extends BaseService
             'img' => ['/example/shop/1.jpg'],
             'ptStyle' => $ptStyle,
             'live' => $live,
+            'deadline'=> date("Y-m-d H:i:s", $deadTime),
+            'beforeDeadline'=> date("Y-m-d H:i:s"),
         ];
         $shopRespond = \bizGhs\shop\classes\ShopClass::addShop($shopData);
         $shopId = $shopRespond->id;

+ 4 - 1
biz-hd/merchant/services/SjService.php

@@ -113,7 +113,8 @@ class SjService extends BaseService
         if (isset($applyData['appRegister']) && $applyData['appRegister'] == 1) {
             //$onlyCg = 0;
         }
-
+        //给一周时间
+        $deadTime = time()+604800;
         //创建门店
         $shopData = [
             'shopName' => '首店',
@@ -141,6 +142,8 @@ class SjService extends BaseService
             'ptStyle' => $ptStyle,
             'live' => $live,
             'onlyCg' => $onlyCg,
+            'deadline'=> date("Y-m-d H:i:s", $deadTime),
+            'beforeDeadline'=> date("Y-m-d H:i:s"),
         ];
         $shopInfo = ShopClass::addShop($shopData);
         $shopId = $shopInfo->id;