Selaa lähdekoodia

feat(auth):添加配置

geek 4 vuotta sitten
vanhempi
commit
2bb5119853
2 muutettua tiedostoa jossa 38 lisäystä ja 15 poistoa
  1. 18 15
      application/cron/controller/MigrateData.php
  2. 20 0
      public/COMPANY_LIST/VKLIVETWO/auth.php

+ 18 - 15
application/cron/controller/MigrateData.php

@@ -75,6 +75,7 @@ class MigrateData {
         $memberCouponModel = new MemberCouponModel();
         $userModel = new MemberModel();
         $where = ['strHQCode' => self::BX];
+//        $where['strCouponCode'] = 13;
         $where['strCouponCode'] = ['in', array_keys($countConfigData)];
         $count = $memberCouponModel->where($where)->count();
         $userCoupon = new UserCouponModel();
@@ -97,7 +98,7 @@ class MigrateData {
                 }
                 $data = [
                     'user_no' => $userNo,
-                    'coupon_id' => $countConfigData[$couponInfo['strCouponCode']],
+                    'coupon_id' => 13,
                     'start_time' => strtotime($couponInfo['datBegin']),
                     'end_time' => strtotime($couponInfo['datEnd']),
                     'use_time' => strtotime($couponInfo['datVerificationTime']),
@@ -106,6 +107,7 @@ class MigrateData {
                     'add_ts' => strtotime($couponInfo['datDateTime']),
                 ];
                 $userCoupon->insert($data);
+                var_dump($userNo);
             }
         }
     }
@@ -119,24 +121,25 @@ class MigrateData {
      */
     public function couponConfig() {
         $couponModel = new CouponModel();
-        $bxCoupon = new \app\common\model\bx\CouponModel();
+//        $bxCoupon = new \app\common\model\bx\CouponModel();
         //select * from tabPromoConfig where strHQCode='126' and blnState=0 and strPromoMode='Coupon' and strCouponTypeCode='1001'
         $data = [];
         $couponList = $couponModel->getCoupon();
+
         foreach ($couponList as $info) {
-            $id = $bxCoupon->insertGetId([
-                'coupon_name'    => $info['strValue2'],
-                'type'           => $info['intValidityType'],
-                'full_money'     => $info['strValue'],
-                'discount_money' => $info['strValue1'],
-                'start_time'     => strtotime($info['datBeginDate']),
-                'end_time'       => strtotime($info['datEndDate']),
-                'receive_day'    => $info['intValidityBegin'],
-                'day'            => $info['intValidityEnd'],
-                'remark'         => $info['strValue3'],
-                'bloc_code'      => 'BAIXIONG',
-            ]);
-            $data[$info['strCode']] = $id;
+//            $id = $bxCoupon->insertGetId([
+//                'coupon_name'    => $info['strValue2'],
+//                'type'           => $info['intValidityType'],
+//                'full_money'     => $info['strValue'],
+//                'discount_money' => $info['strValue1'],
+//                'start_time'     => strtotime($info['datBeginDate']),
+//                'end_time'       => strtotime($info['datEndDate']),
+//                'receive_day'    => $info['intValidityBegin'],
+//                'day'            => $info['intValidityEnd'],
+//                'remark'         => $info['strValue3'],
+//                'bloc_code'      => 'BAIXIONG',
+//            ]);
+            $data[$info['strCode']] = 13;
         }
         return $data;
     }

+ 20 - 0
public/COMPANY_LIST/VKLIVETWO/auth.php

@@ -0,0 +1,20 @@
+<?php
+
+return [
+
+    'Xcx_pay_appId'=>'',//公众号appid
+    'Xcx_pay_sub_appId'=>'wxf3e6f54ba31090f5',//小程序appid
+    'Wechat_js_appId' => 'wxf3e6f54ba31090f5',
+    'Xcx_mchId'=>'',//主账户
+    'Xcx_sub_mchId'=>'',//子账户
+    'Xcx_pay_key'=>'',
+    'Xcx_secret'=>'d3da107f9d937a9c6c4c2f8377cf2e9b',
+    'Wechat_js_appsecret' => 'd3da107f9d937a9c6c4c2f8377cf2e9b',
+    'Xcx_tip'=>'VKLIVETWO',
+    'Xcx_pay_notify_url'=>[
+        ''
+    ],
+
+    //验证参数
+    'signKey'=>'43F9279CE14DBF34257C08612CE51GE5',
+];