Zory 2 өдөр өмнө
parent
commit
b766980f91

+ 1 - 0
app/controller/api/Notify.php

@@ -48,6 +48,7 @@ class Notify extends Base
             $order->pay_type = $data['pay_channel'];
             $order->pay_sn = $data['channel_pay_id'];
             $order->pay_money = $data['total_amount'];
+            $order->is_show = 1;
             $order->save();
             return json(['err_no' => 0,'err_tips' => "success"]);
         } catch (\Throwable $th) {

+ 1 - 0
app/controller/api/Solution.php

@@ -117,6 +117,7 @@ class Solution extends Base
                             "scene"         => $cp_extra['scene']??'',
                             "mobile"        => $msgData['phone_num']??'',
                             "pay_money"     => $msgData['total_amount']??0,
+                            "is_show"       => 0
                         ]);
                         $itemData = [];
                         foreach ($msgData['item_order_info_list'] as $key=>$val) {

+ 1 - 0
app/service/saas/OrderService.php

@@ -26,6 +26,7 @@ class OrderService extends Service
     public function searchFilter(array $param = []): array
     {
         $filter = [];
+        $filter[] = ["is_show", '=', 1];
         !empty($param['openid']) && $filter[] = ["openid", '=', $param['openid']];
         !empty($param['poi_id']) && $filter[] = ["poi_id", '=', $param['poi_id']];
         !empty($param['poi']) && $filter[] = ["poi_id", '=', $param['poi']];