Bladeren bron

feat(api):为用户账单查询增加 bill_id 字段

- 在所有平台订单列表查询中添加 bill_id 字段
- 包括拼多多、唯品会、苏宁、淘宝客、京东和抖音等平台- 统一修改各平台查询字段以支持账单ID返回
shichen 9 maanden geleden
bovenliggende
commit
81bfb7d686
1 gewijzigde bestanden met toevoegingen van 7 en 7 verwijderingen
  1. 7 7
      app/controller/api/store/product/Other.php

+ 7 - 7
app/controller/api/store/product/Other.php

@@ -395,7 +395,7 @@ class Other extends BaseController
395
         switch ($params['type']) {
395
         switch ($params['type']) {
396
             case 1://多多进宝
396
             case 1://多多进宝
397
                 $list = Db::name('user_bill')
397
                 $list = Db::name('user_bill')
398
-                    ->field('number,order_sn,status')
398
+                    ->field('number,order_sn,status,bill_id')
399
                     ->where('uid', $userId)
399
                     ->where('uid', $userId)
400
                     ->where('commission_type',5)
400
                     ->where('commission_type',5)
401
                     ->where('type_shop',1)
401
                     ->where('type_shop',1)
@@ -431,7 +431,7 @@ class Other extends BaseController
431
                 break;
431
                 break;
432
             case 2://唯品会(没有商品价格)
432
             case 2://唯品会(没有商品价格)
433
                 $list = Db::name('user_bill')
433
                 $list = Db::name('user_bill')
434
-                    ->field('number,order_sn,status')
434
+                    ->field('number,order_sn,status,bill_id')
435
                     ->where('uid', $userId)
435
                     ->where('uid', $userId)
436
                     ->where('commission_type',5)
436
                     ->where('commission_type',5)
437
                     ->where('type_shop',2)
437
                     ->where('type_shop',2)
@@ -466,7 +466,7 @@ class Other extends BaseController
466
                 break;
466
                 break;
467
             case 3://苏宁订单列表
467
             case 3://苏宁订单列表
468
                 $list = Db::name('user_bill')
468
                 $list = Db::name('user_bill')
469
-                    ->field('number,order_sn,status')
469
+                    ->field('number,order_sn,status,bill_id')
470
                     ->where('uid', $userId)
470
                     ->where('uid', $userId)
471
                     ->where('commission_type',5)
471
                     ->where('commission_type',5)
472
                     ->where('type_shop',3)
472
                     ->where('type_shop',3)
@@ -497,7 +497,7 @@ class Other extends BaseController
497
                 break;
497
                 break;
498
             case 5://淘宝客
498
             case 5://淘宝客
499
                 $list = Db::name('user_bill')
499
                 $list = Db::name('user_bill')
500
-                    ->field('number,order_sn,status')
500
+                    ->field('number,order_sn,status,bill_id')
501
                     ->where('uid', $userId)
501
                     ->where('uid', $userId)
502
                     ->where('commission_type',5)
502
                     ->where('commission_type',5)
503
                     ->where('type_shop',5)
503
                     ->where('type_shop',5)
@@ -531,7 +531,7 @@ class Other extends BaseController
531
                 break;
531
                 break;
532
             case 6://京东订单
532
             case 6://京东订单
533
                 $list = Db::name('user_bill')
533
                 $list = Db::name('user_bill')
534
-                    ->field('number,order_sn,status')
534
+                    ->field('number,order_sn,status,bill_id')
535
                     ->where('uid', $userId)
535
                     ->where('uid', $userId)
536
                     ->where('commission_type',5)
536
                     ->where('commission_type',5)
537
                     ->where('type_shop',6)
537
                     ->where('type_shop',6)
@@ -563,7 +563,7 @@ class Other extends BaseController
563
                 break;
563
                 break;
564
             case 9: //抖音
564
             case 9: //抖音
565
                 $list = Db::name('user_bill')
565
                 $list = Db::name('user_bill')
566
-                    ->field('number,order_sn,status')
566
+                    ->field('number,order_sn,status,bill_id')
567
                     ->where('uid', $userId)
567
                     ->where('uid', $userId)
568
                     ->where('commission_type',5)
568
                     ->where('commission_type',5)
569
 //                    ->where('type_shop',9)
569
 //                    ->where('type_shop',9)
@@ -596,7 +596,7 @@ class Other extends BaseController
596
                 break;
596
                 break;
597
             case 10: //话费
597
             case 10: //话费
598
                 $list = Db::name('user_bill')
598
                 $list = Db::name('user_bill')
599
-                    ->field('number,order_sn,status')
599
+                    ->field('number,order_sn,status,bill_id')
600
                     ->where('uid', $userId)
600
                     ->where('uid', $userId)
601
                     ->where('commission_type',5)
601
                     ->where('commission_type',5)
602
                     ->where('type_shop',9)
602
                     ->where('type_shop',9)