소스 검색

审核通过给一周时间

shish 4 달 전
부모
커밋
9be7aeb7e2
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      biz-ghs/merchant/services/MerchantService.php
  2. 4 1
      biz-hd/merchant/services/SjService.php

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

@@ -114,6 +114,8 @@ class MerchantService extends BaseService
 
 
         MerchantInitClass::add(['sjId' => $sjId]);
         MerchantInitClass::add(['sjId' => $sjId]);
 
 
+        //给一周时间
+        $deadTime = time()+604800;
         //创建门店
         //创建门店
         $shopData = [
         $shopData = [
             'shopName' => '首店',
             'shopName' => '首店',
@@ -139,6 +141,8 @@ class MerchantService extends BaseService
             'img' => ['/example/shop/1.jpg'],
             'img' => ['/example/shop/1.jpg'],
             'ptStyle' => $ptStyle,
             'ptStyle' => $ptStyle,
             'live' => $live,
             '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);
         $shopRespond = \bizGhs\shop\classes\ShopClass::addShop($shopData);
         $shopId = $shopRespond->id;
         $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) {
         if (isset($applyData['appRegister']) && $applyData['appRegister'] == 1) {
             //$onlyCg = 0;
             //$onlyCg = 0;
         }
         }
-
+        //给一周时间
+        $deadTime = time()+604800;
         //创建门店
         //创建门店
         $shopData = [
         $shopData = [
             'shopName' => '首店',
             'shopName' => '首店',
@@ -141,6 +142,8 @@ class SjService extends BaseService
             'ptStyle' => $ptStyle,
             'ptStyle' => $ptStyle,
             'live' => $live,
             'live' => $live,
             'onlyCg' => $onlyCg,
             'onlyCg' => $onlyCg,
+            'deadline'=> date("Y-m-d H:i:s", $deadTime),
+            'beforeDeadline'=> date("Y-m-d H:i:s"),
         ];
         ];
         $shopInfo = ShopClass::addShop($shopData);
         $shopInfo = ShopClass::addShop($shopData);
         $shopId = $shopInfo->id;
         $shopId = $shopInfo->id;