Procházet zdrojové kódy

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

- 在所有平台订单列表查询中添加 bill_id 字段
- 包括拼多多、唯品会、苏宁、淘宝客、京东和抖音等平台- 统一修改各平台查询字段以支持账单ID返回
shichen před 9 měsíci
rodič
revize
81bfb7d686
1 změnil soubory, kde provedl 7 přidání a 7 odebrání
  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 395
         switch ($params['type']) {
396 396
             case 1://多多进宝
397 397
                 $list = Db::name('user_bill')
398
-                    ->field('number,order_sn,status')
398
+                    ->field('number,order_sn,status,bill_id')
399 399
                     ->where('uid', $userId)
400 400
                     ->where('commission_type',5)
401 401
                     ->where('type_shop',1)
@@ -431,7 +431,7 @@ class Other extends BaseController
431 431
                 break;
432 432
             case 2://唯品会(没有商品价格)
433 433
                 $list = Db::name('user_bill')
434
-                    ->field('number,order_sn,status')
434
+                    ->field('number,order_sn,status,bill_id')
435 435
                     ->where('uid', $userId)
436 436
                     ->where('commission_type',5)
437 437
                     ->where('type_shop',2)
@@ -466,7 +466,7 @@ class Other extends BaseController
466 466
                 break;
467 467
             case 3://苏宁订单列表
468 468
                 $list = Db::name('user_bill')
469
-                    ->field('number,order_sn,status')
469
+                    ->field('number,order_sn,status,bill_id')
470 470
                     ->where('uid', $userId)
471 471
                     ->where('commission_type',5)
472 472
                     ->where('type_shop',3)
@@ -497,7 +497,7 @@ class Other extends BaseController
497 497
                 break;
498 498
             case 5://淘宝客
499 499
                 $list = Db::name('user_bill')
500
-                    ->field('number,order_sn,status')
500
+                    ->field('number,order_sn,status,bill_id')
501 501
                     ->where('uid', $userId)
502 502
                     ->where('commission_type',5)
503 503
                     ->where('type_shop',5)
@@ -531,7 +531,7 @@ class Other extends BaseController
531 531
                 break;
532 532
             case 6://京东订单
533 533
                 $list = Db::name('user_bill')
534
-                    ->field('number,order_sn,status')
534
+                    ->field('number,order_sn,status,bill_id')
535 535
                     ->where('uid', $userId)
536 536
                     ->where('commission_type',5)
537 537
                     ->where('type_shop',6)
@@ -563,7 +563,7 @@ class Other extends BaseController
563 563
                 break;
564 564
             case 9: //抖音
565 565
                 $list = Db::name('user_bill')
566
-                    ->field('number,order_sn,status')
566
+                    ->field('number,order_sn,status,bill_id')
567 567
                     ->where('uid', $userId)
568 568
                     ->where('commission_type',5)
569 569
 //                    ->where('type_shop',9)
@@ -596,7 +596,7 @@ class Other extends BaseController
596 596
                 break;
597 597
             case 10: //话费
598 598
                 $list = Db::name('user_bill')
599
-                    ->field('number,order_sn,status')
599
+                    ->field('number,order_sn,status,bill_id')
600 600
                     ->where('uid', $userId)
601 601
                     ->where('commission_type',5)
602 602
                     ->where('type_shop',9)