Explorar o código

第三方-淘宝客-更换接入应用

sunxbiao hai 8 meses
pai
achega
d3e699f50e
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      app/controller/api/store/product/DaTaoKe.php

+ 8 - 0
app/controller/api/store/product/DaTaoKe.php

@@ -558,6 +558,7 @@ class DaTaoKe
558
     //处理淘宝客订单
558
     //处理淘宝客订单
559
     public static function operateOrder($formatLists)
559
     public static function operateOrder($formatLists)
560
     {
560
     {
561
+        /** @var UserThirdRepository $orderThird */
561
         $orderThird = app()->make(UserThirdRepository::class);
562
         $orderThird = app()->make(UserThirdRepository::class);
562
         foreach ($formatLists as $k => $order) {
563
         foreach ($formatLists as $k => $order) {
563
             log::info("=++++==taobaoorder=====+++");
564
             log::info("=++++==taobaoorder=====+++");
@@ -588,6 +589,13 @@ class DaTaoKe
588
                     $localOrder['order_sn'],
589
                     $localOrder['order_sn'],
589
                     5
590
                     5
590
                 );
591
                 );
592
+                if($order['tk_status'] == 13){
593
+                    //修改积分和贡献,yanglaojin值记录
594
+                    $orderThird->updateJilu(
595
+                        $localOrder['uid'],
596
+                        $localOrder['order_tb_id'],
597
+                        5);
598
+                }
591
             } else {
599
             } else {
592
                 if($localOrder['tk_status']!=$order['tk_status']) {
600
                 if($localOrder['tk_status']!=$order['tk_status']) {
593
                     log::info("=============更新订单");
601
                     log::info("=============更新订单");