lizhen_gitee 1 anno fa
parent
commit
ba20528c6e
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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;