lizhen_gitee hai 1 ano
pai
achega
ba20528c6e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      application/index/controller/Plantask.php

+ 2 - 2
application/index/controller/Plantask.php

@@ -153,7 +153,7 @@ class Plantask extends Controller
                     'have_paid' => ['gt',0],
                     'user_id' => $intro_uid,
                 ];
-                $first_order = Db::name('order')->where($map)->order('have_paid asc')->value('order_price');
+                $first_order = Db::name('unishop_order')->where($map)->order('have_paid asc')->value('order_price');
                 $jishu = $order['order_price'];
                 if($first_order < $order['order_price']){
                     $jishu = $first_order;
@@ -182,7 +182,7 @@ class Plantask extends Controller
                     'have_paid' => ['gt',0],
                     'user_id' => $top_uid,
                 ];
-                $first_order = Db::name('order')->where($map)->order('have_paid asc')->value('order_price');
+                $first_order = Db::name('unishop_order')->where($map)->order('have_paid asc')->value('order_price');
                 $jishu = $order['order_price'];
                 if($first_order < $order['order_price']){
                     $jishu = $first_order;