ソースを参照

字眼更改为幸福宝

xialei 1 年間 前
コミット
9444229ded

+ 2 - 2
app/command/TestTask.php

@@ -251,7 +251,7 @@ class TestTask extends Command
251 251
 
252 252
                 $resultArray = explode(",", $count[0]['uids']);
253 253
                 foreach ($resultArray as $reg_uid) {
254
-                    //查询储蓄保和上级
254
+                    //查询幸福宝和上级
255 255
                     $reg_user = Db::connect('chuxubao')->query("select * from chuxubao.rrx_user where uid={$reg_uid} and is_del=0")[0] ?? [];
256 256
                     if (!$reg_user) {
257 257
                         continue;
@@ -281,7 +281,7 @@ class TestTask extends Command
281 281
                             Db::name('user')->where('uid', $yihucha_user['uid'])->update(['spread_uid' => $yihucha_spread_user['uid']]);
282 282
                         } else if ($yihucha_user['spread_uid'] != $yihucha_spread_user['uid']) {
283 283
                             //暂时不作操作
284
-                            echo "{$reg_user['phone']}已注册,有邀请人并且邀请人不是储蓄保上级 需要注意 储蓄保邀请人{$reg_spread_user['phone']} 一壶茶邀请人{$yihucha_puser['phone']}\r\n";
284
+                            echo "{$reg_user['phone']}已注册,有邀请人并且邀请人不是幸福宝上级 需要注意 幸福宝邀请人{$reg_spread_user['phone']} 一壶茶邀请人{$yihucha_puser['phone']}\r\n";
285 285
                         }
286 286
                     }
287 287
                 }

+ 1 - 1
app/command/test/ln/ImportUser.php

@@ -13,7 +13,7 @@ class ImportUser extends Command
13 13
     protected function configure()
14 14
     {
15 15
         // 指令配置
16
-        $this->setName('import_user')->setDescription('导入储蓄保一壶茶会员');
16
+        $this->setName('import_user')->setDescription('导入幸福宝一壶茶会员');
17 17
     }
18 18
 
19 19
     protected function execute(Input $input, Output $output)

+ 2 - 2
app/command/test/ln/ImportUser2.php

@@ -12,7 +12,7 @@ class ImportUser2 extends Command
12 12
 {
13 13
     protected function configure()
14 14
     {
15
-        $this->setName('chuxubao')->setDescription('导入储蓄保数据');
15
+        $this->setName('chuxubao')->setDescription('导入幸福宝数据');
16 16
     }
17 17
 
18 18
     protected function execute(Input $input, Output $output)
@@ -74,7 +74,7 @@ class ImportUser2 extends Command
74 74
                     $yihucha_child_user = Db::name('user')->where('phone', $child_user['phone'])->where('is_del', 0)->find();
75 75
                     //子级用户信息为空,用父级uid覆盖
76 76
                     if (empty($yihucha_child_user['spread_uid'])) {
77
-                        $logs['step2'] = "一壶茶邀请关系为空, 父级用户uid, {$yihucha_father_user['uid']}, 父级用户手机号, {{$yihucha_father_user['phone']}}, 使用储蓄保邀请关系覆盖";
77
+                        $logs['step2'] = "一壶茶邀请关系为空, 父级用户uid, {$yihucha_father_user['uid']}, 父级用户手机号, {{$yihucha_father_user['phone']}}, 使用幸福宝邀请关系覆盖";
78 78
                         Db::name('user')->where('uid', $yihucha_child_user['uid'])->update(['spread_uid' => $yihucha_father_user['uid']]);
79 79
                     } else {
80 80
                         $yihucha_child_spread_user = Db::name('user')->where('uid', $yihucha_child_user['spread_uid'])->where('is_del', 0)->find();

+ 1 - 1
app/common/repositories/merchant/order/OrderMerchantRepository.php

@@ -1664,7 +1664,7 @@ class OrderMerchantRepository extends BaseRepository
1664 1664
 
1665 1665
         //商户得到的(京豆和贡献值奖励的倍,后台设置)
1666 1666
         $jd = bcmul($divisible_commission, $mer_jd, 2);
1667
-        if ($jd >= 0.01) {
1667
+        if ($jd >= 0.01) {  
1668 1668
             $jd_data = [
1669 1669
                 "uid"           =>$mer_data["uid"],
1670 1670
                 "mer_id"        =>$order["mer_id"],

+ 4 - 4
app/common/repositories/store/order/StoreOrderRepository.php

@@ -7688,7 +7688,7 @@ class StoreOrderRepository extends BaseRepository
7688 7688
         $insterAll = array(
7689 7689
             'money' => $amount_queshao,
7690 7690
             'member_id' => '',
7691
-            'mark' => '一壶茶应得 (' . set_price_rtrim(decimal2($amount_queshao + $amount_yihucha)) . ') 实得(' . set_price_rtrim($amount_yihucha) . ') 给了储蓄保(' . set_price_rtrim($amount_queshao) . ')',
7691
+            'mark' => '一壶茶应得 (' . set_price_rtrim(decimal2($amount_queshao + $amount_yihucha)) . ') 实得(' . set_price_rtrim($amount_yihucha) . ') 给了幸福宝(' . set_price_rtrim($amount_queshao) . ')',
7692 7692
             'order_id' => $order_id
7693 7693
         );
7694 7694
 
@@ -8594,8 +8594,8 @@ class StoreOrderRepository extends BaseRepository
8594 8594
                 $_order = [
8595 8595
                     'commission_rate' => (float)$merchantRepository->get($cartInfo['mer_id'])->mer_commission_rate,
8596 8596
                     'order_type' => in_array($cartInfo['mer_id'], $takes) == 1 ? 1 : 0,
8597
-                    'extension_one' => 0,
8598
-                    'extension_two' => 0,
8597
+                    'extension_one' => $cartInfo['list'][0]['productAttr']['extension_one'] ?? 0,
8598
+                    'extension_two' => $cartInfo['list'][0]['productAttr']['extension_two'] ?? 0,
8599 8599
                     'orderInfo' => $cartInfo['order'],
8600 8600
                     'cartInfo' => $cartInfo['list'],
8601 8601
                     'order_sn' => $this->getNewOrderId() . ($k + 1),
@@ -9914,7 +9914,7 @@ class StoreOrderRepository extends BaseRepository
9914 9914
                     }
9915 9915
                     /** @var OrderMerchantRepository $orderMerchantRepository */
9916 9916
                     $orderMerchantRepository = app()->make(OrderMerchantRepository::class);
9917
-                    $jdAndGonxianConfig = $orderMerchantRepository->getMerchantContribution($store_order_data['extension_two']);
9917
+                    $jdAndGonxianConfig = $orderMerchantRepository->getMerchantContribution($store_order_data['extension_one']);
9918 9918
 
9919 9919
                     //商户获得贡献值  ---- 3月29日  商户不再获得贡献值 改为获得分润值
9920 9920
 //                    if ($concession_pri >= 0.01) {

+ 1 - 1
app/common/repositories/store/product/ProductRepository.php

@@ -1081,7 +1081,7 @@ class ProductRepository extends BaseRepository
1081 1081
 
1082 1082
 
1083 1083
         $productDetails = array(
1084
-            'name'     => $product ?? "储蓄保",//商品名称。需传递真实产品名称。
1084
+            'name'     => $product ?? "幸福宝",//商品名称。需传递真实产品名称。
1085 1085
             'quantity' => 1,//商品数量
1086 1086
             'amount'   => strval($price * 100),//商品单价
1087 1087
         );

+ 4 - 4
app/common/repositories/user/UserExtractRepository.php

@@ -451,7 +451,7 @@ class UserExtractRepository extends BaseRepository
451 451
                     'extract_price'=> $extract_price_yihu,
452 452
                     'service_money'=> $service_money_yihu,
453 453
                     'order_sn'=> $data['order_sn'],
454
-                    'type'=> 1,//0- 储蓄保 1-一壶茶
454
+                    'type'=> 1,//0- 幸福宝 1-一壶茶
455 455
                 );
456 456
 //                    }
457 457
                 $insertAll[]=array(
@@ -461,7 +461,7 @@ class UserExtractRepository extends BaseRepository
461 461
                     'extract_price'=> ($data['extract_price']-$extract_price_yihu),
462 462
                     'service_money'=> ($data['service_money']-$service_money_yihu),
463 463
                     'order_sn'=> $data['order_sn'],
464
-                    'type'=> 0,//0- 储蓄保 1-一壶茶
464
+                    'type'=> 0,//0- 幸福宝 1-一壶茶
465 465
                 );
466 466
                 DB::name('user_extract_item')->insertAll($insertAll);
467 467
 
@@ -908,11 +908,11 @@ class UserExtractRepository extends BaseRepository
908 908
             $aop->isCheckAlipayPublicCert = true;
909 909
             $order_title='提现';
910 910
             if($userdata['withdrawal_type']==1){
911
-                $order_title='储蓄保提现';
911
+                $order_title='幸福宝提现';
912 912
                 $userdata['extract_price']=bcsub($userdata['extract_price'],$userdata['service_money']);
913 913
             }elseif($userdata['withdrawal_type']==2){
914 914
                 $mer_name=Db::name('merchant')->where('mer_id',$userdata['mer_id'])->value('mer_name');
915
-                $order_title='储蓄保-'.$mer_name.'提现';
915
+                $order_title='幸福宝-'.$mer_name.'提现';
916 916
                 $userdata['extract_price']=bcsub($userdata['extract_price'],$userdata['service_money']);
917 917
             }
918 918
 //            Db::name('log')->insert(['data'=>'AopCertClient']);

+ 5 - 5
app/common/repositories/user/UserRepository.php

@@ -2377,11 +2377,11 @@ class UserRepository extends BaseRepository
2377 2377
 
2378 2378
                 if($v['source'] == 0){
2379 2379
                     if($v['commission_type'] == 9){
2380
-                        $this -> getContent('channel_order',$v['order_sn'],'储蓄保',$v['status'],$v['commission_type'],$v);
2380
+                        $this -> getContent('channel_order',$v['order_sn'],'幸福宝',$v['status'],$v['commission_type'],$v);
2381 2381
                     }elseif($v['commission_type'] == 10){
2382
-                        $this -> getContent('merchant_annual_cost_order',$v['order_sn'],'储蓄保',$v['status'],$v['commission_type'],$v);
2382
+                        $this -> getContent('merchant_annual_cost_order',$v['order_sn'],'幸福宝',$v['status'],$v['commission_type'],$v);
2383 2383
                     }else{
2384
-                        $this -> getContent('store_order',$v['order_sn'],'储蓄保',$v['status'],$v['commission_type'],$v,$v['create_time']);
2384
+                        $this -> getContent('store_order',$v['order_sn'],'幸福宝',$v['status'],$v['commission_type'],$v,$v['create_time']);
2385 2385
                     }
2386 2386
                 }else{
2387 2387
                     $uid=Db::name("store_order")->where("order_sn",$v["order_sn"])->value("uid");
@@ -2667,7 +2667,7 @@ class UserRepository extends BaseRepository
2667 2667
                     $v['title']='人工减少佣金';
2668 2668
                 }
2669 2669
             }else{
2670
-                $v['title']='储蓄保-佣金提现';
2670
+                $v['title']='幸福宝-佣金提现';
2671 2671
             }
2672 2672
             if($v['bank_info']!=''){
2673 2673
                 $bank_info=json_decode($v['bank_info'],true);
@@ -2703,7 +2703,7 @@ class UserRepository extends BaseRepository
2703 2703
                     $v['title']='人工减少佣金';
2704 2704
                 }
2705 2705
             }else{
2706
-                $v['title']='储蓄保-佣金提现';
2706
+                $v['title']='幸福宝-佣金提现';
2707 2707
             }
2708 2708
             if($v['bank_info']!=''){
2709 2709
                 $bank_info=json_decode($v['bank_info'],true);

+ 1 - 1
app/controller/api/Auth.php

@@ -1415,7 +1415,7 @@ class Auth extends BaseController
1415 1415
             if(empty($sessionKey['sessionKey'])||empty($encryptedData['encryptedData'])||empty($iv['iv'])){
1416 1416
                 return app('json')->fail('参数不正确');
1417 1417
             }
1418
-            $appid = 'wx9082e5ac2fdb513f';//储蓄保小程序appid
1418
+            $appid = 'wx9082e5ac2fdb513f';//幸福宝小程序appid
1419 1419
             if($this->source=='yhc'){
1420 1420
                 $appid = 'wx9082e5ac2fdb513f';//一壶茶小程序appid
1421 1421
             }

+ 1 - 1
app/controller/api/Notify.php

@@ -682,7 +682,7 @@ class Notify
682 682
                                         }
683 683
                                         /** @var OrderMerchantRepository $orderMerchantRepository */
684 684
                                         $orderMerchantRepository = app()->make(OrderMerchantRepository::class);
685
-                                        $jdAndGonxianConfig = $orderMerchantRepository->getMerchantContribution($store_order_data['extension_two']);
685
+                                        $jdAndGonxianConfig = $orderMerchantRepository->getMerchantContribution($store_order_data['extension_one']);
686 686
 
687 687
                                         //商户获得贡献值  ---- 3月29日  商户不再获得贡献值 改为获得分润值
688 688
                     //                    if ($concession_pri >= 0.01) {

+ 2 - 2
app/controller/api/entropybarter/User.php

@@ -95,12 +95,12 @@ class User extends BaseController
95 95
     /**
96 96
      * @param $uid
97 97
      * @param $spread_uid
98
-     * 绑定储蓄保的关系
98
+     * 绑定幸福宝的关系
99 99
      */
100 100
     public function cxb_bangding($uid,$spread_uid)
101 101
     {
102 102
         $spread_uid_user=Db::name('user')->where('uid',$uid)->value('spread_uid');
103
-        Db::name('log')->insert(['data'=>'绑定储蓄保的关系进来了他的上级ID'.$spread_uid_user]);
103
+        Db::name('log')->insert(['data'=>'绑定幸福宝的关系进来了他的上级ID'.$spread_uid_user]);
104 104
         if($spread_uid_user==0){
105 105
             Db::name('user')->where('uid',$uid)->update(['spread_uid'=>$spread_uid]);
106 106
         }

+ 10 - 10
app/controller/api/merchant/sxy/Access.php

@@ -736,7 +736,7 @@ class Access
736 736
             $groupOrder = Db::name('order_huafei_hf')->where('order_id', (int)$oid)->find();
737 737
             if (!$groupOrder) return app('json')->fail('订单不存在或已支付');
738 738
 
739
-            $res = $this->pay_huifu($type,$code,$groupOrder,"储蓄保",env('APP_URL')."/api/hf_notify/huafei",'delay');
739
+            $res = $this->pay_huifu($type,$code,$groupOrder,"幸福宝",env('APP_URL')."/api/hf_notify/huafei",'delay');
740 740
             Db::name('log')->insert(['data'=>'汇付话费订单支付--- 返回参数'.json_encode($res)]);
741 741
             if (isset($res['id'])) {
742 742
                 return app('json')->success($res);
@@ -836,7 +836,7 @@ class Access
836 836
                     ->where(["sc.cart_id"=>$cart_id])
837 837
                     ->value('sp.store_name');
838 838
             }
839
-            $res = $this -> pay_huifu($type,$code,$groupOrder,$product ?? "储蓄保",env('APP_URL')."/api/hf_notify/pay",'delay');
839
+            $res = $this -> pay_huifu($type,$code,$groupOrder,$product ?? "幸福宝",env('APP_URL')."/api/hf_notify/pay",'delay');
840 840
             Db::name('log')->insert(['data'=>'汇付订单支付--- 返回参数'.json_encode($res)]);
841 841
             if (isset($res['id'])) {
842 842
                 Db::name('store_group_order')->where('group_order_id', $oid)->update(['hf_pay_id' => $res['id'],'pay_wx'=>systemConfig('pay_wx')]);
@@ -881,7 +881,7 @@ class Access
881 881
             Db::name("log")->insert(array('data'=>Db::name("store_product")->getLastSql()));//日志记录
882 882
 
883 883
             $productDetails = array(
884
-                'name' => $product ?? "储蓄保",//商品名称。需传递真实产品名称。
884
+                'name' => $product ?? "幸福宝",//商品名称。需传递真实产品名称。
885 885
                 'quantity' => 1,//商品数量
886 886
                 'amount' => strval($groupOrder['pay_price'] * 100),//商品单价
887 887
             );
@@ -942,7 +942,7 @@ class Access
942 942
                     ->where(["sc.cart_id"=>$cart_id])
943 943
                     ->value('sp.store_name');
944 944
             }
945
-            $res = $this -> pay_huifu($type,$code,$groupOrder,$product ?? "储蓄保",env('APP_URL')."/api/hf_notify/pay",'delay');
945
+            $res = $this -> pay_huifu($type,$code,$groupOrder,$product ?? "幸福宝",env('APP_URL')."/api/hf_notify/pay",'delay');
946 946
             Db::name('log')->insert(['data'=>'汇付订单支付--- 返回参数'.json_encode($res)]);
947 947
             if (isset($res['id'])) {
948 948
                 Db::name('store_group_order')->where('group_order_id', $oid)->update(['hf_pay_id' => $res['id'],'pay_wx'=>systemConfig('pay_wx')]);
@@ -987,7 +987,7 @@ class Access
987 987
             Db::name("log")->insert(array('data'=>Db::name("store_product")->getLastSql()));//日志记录
988 988
 
989 989
             $productDetails = array(
990
-                'name' => $product ?? "储蓄保",//商品名称。需传递真实产品名称。
990
+                'name' => $product ?? "幸福宝",//商品名称。需传递真实产品名称。
991 991
                 'quantity' => 1,//商品数量
992 992
                 'amount' => strval($groupOrder['pay_price'] * 100),//商品单价
993 993
             );
@@ -1064,8 +1064,8 @@ class Access
1064 1064
                 'app_id'=>$app_id,
1065 1065
                 'pay_channel'=>$pay_channel,
1066 1066
                 'pay_amt'=>strval($groupOrder['pay_price']),//金额。,
1067
-                'goods_title'=>$product ?? "储蓄保",
1068
-                'goods_desc'=>$product ?? "储蓄保",
1067
+                'goods_title'=>$product ?? "幸福宝",
1068
+                'goods_desc'=>$product ?? "幸福宝",
1069 1069
                 'device_info'=>[
1070 1070
                     'device_ip'=>app('request')->ip()
1071 1071
 //                    'device_ip'=>'115.171.134.68'
@@ -1094,8 +1094,8 @@ class Access
1094 1094
                 'app_id'=>$app_id,
1095 1095
                 'pay_channel'=>$pay_channel,
1096 1096
                 'pay_amt'=>strval($groupOrder['pay_price']),//金额。,
1097
-                'goods_title'=>$product ?? "储蓄保",
1098
-                'goods_desc'=>$product ?? "储蓄保",
1097
+                'goods_title'=>$product ?? "幸福宝",
1098
+                'goods_desc'=>$product ?? "幸福宝",
1099 1099
                 'device_info'=>[
1100 1100
                     'device_ip'=>app('request')->ip()
1101 1101
 //                    'device_ip'=>'115.171.134.68'
@@ -1208,7 +1208,7 @@ class Access
1208 1208
             Db::name("log")->insert(array('data'=>Db::name("store_product")->getLastSql()));//日志记录
1209 1209
 
1210 1210
             $productDetails = array(
1211
-                'name' => $product ?? "储蓄保年费",//商品名称。需传递真实产品名称。
1211
+                'name' => $product ?? "幸福宝年费",//商品名称。需传递真实产品名称。
1212 1212
                 'quantity' => 1,//商品数量
1213 1213
                 'amount' => strval($groupOrder['pay_price'] * 100),//商品单价
1214 1214
             );

+ 2 - 2
app/controller/api/store/product/StoreProduct.php

@@ -251,7 +251,7 @@ class StoreProduct extends BaseController
251 251
     //生成邀请小程序码
252 252
     public function invite_code(){
253 253
         $uid = $this->request->param('uid',0);
254
-        $type = 0;//0-储蓄保 1-国盛 2-一壶茶
254
+        $type = 0;//0-幸福宝 1-国盛 2-一壶茶
255 255
         $imgId = $this->request->param('imgId',0);
256 256
 
257 257
         //删除老数据
@@ -556,7 +556,7 @@ class StoreProduct extends BaseController
556 556
                         'angle' => 0,
557 557
                     ),
558 558
                     array(
559
-                        'text' => '加入储蓄保,一起攒攒攒',
559
+                        'text' => '加入幸福宝,一起攒攒攒',
560 560
                         'left' => 400,
561 561
                         'top' => 1200,
562 562
                         'fontPath' => $filelink['Normal'],     //字体文件

+ 1 - 1
app/controller/api/user/Im.php

@@ -305,7 +305,7 @@ class Im
305 305
      * 加群
306 306
      * @param $group_id string 群组id
307 307
      * @param $user_id string 环信用户id
308
-     * @param $uid int 储蓄保用户id
308
+     * @param $uid int 幸福宝用户id
309 309
      */
310 310
     public function createGroupUser($group_id, $user_id, $uid)
311 311
     {

+ 2 - 4
app/controller/api/user/User.php

@@ -218,12 +218,10 @@ class User extends BaseController
218 218
         $where['uid'] = $uid;
219 219
 
220 220
         if ($pm==0){
221
-
222 221
             $data = DB::name('user_sign_hongbao')->where($where)->where('type',1)->where('status',1)->field('id,mark,number,type,addtime,order_id,status')->page($page, $limit)->order("id desc")->select();
223 222
         }
224 223
         if($pm==1){
225 224
             $data = DB::name('user_sign_hongbao')->where($where)->where(['type' => 2,'status' => 1])->field('id,mark,number,type,addtime,order_id')->page($page, $limit)->order("id desc")->select();
226
-
227 225
         }
228 226
         if($pm==2){
229 227
             $data = DB::name('user_sign_hongbao')->where($where)->where('type',1)->where([['status','in','-1,0']])->field('id,mark,number,type,addtime,order_id,status')->page($page, $limit)->order("id desc")->select();
@@ -3257,7 +3255,7 @@ class User extends BaseController
3257 3255
                 'app_id'      => $app_id,
3258 3256
                 'pay_channel' => $pay_channel,
3259 3257
                 'pay_amt'     => (string)$order['pay_price'],
3260
-                'goods_title' => "储蓄保",
3258
+                'goods_title' => "幸福宝",
3261 3259
                 'goods_desc'  => $title,
3262 3260
                 'device_info' => [
3263 3261
                     'device_ip' => app('request')->ip()
@@ -3628,7 +3626,7 @@ class User extends BaseController
3628 3626
                     'surplus' => $vr,
3629 3627
                     'mark' => '红包转VR',
3630 3628
                     'type' => 2,
3631
-                    'status' => 0,
3629
+                    'status' => 1,
3632 3630
                     'addtime' => time(),
3633 3631
                 ];
3634 3632
                 Db::name('user_sign_hongbao')->insertGetId($insertdata);