1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- declare (strict_types=1);
- namespace app\services\pc;
- use app\services\BaseServices;
- use app\services\order\StoreOrderServices;
- class OrderServices extends BaseServices
- {
-
- public function checkOrderStatus(string $order_id)
- {
-
- $order = app()->make(StoreOrderServices::class);
- $res = $order->count(['order_id' => $order_id, 'paid' => 1]);
- if ($res) return true;
- return false;
- }
-
- public function getOrderList(array $where, array $field = ['*'], array $with = [])
- {
-
- $order = app()->make(StoreOrderServices::class);
- $data['list'] = $order->getOrderApiList($where, $field, $with);
- $data['count'] = $order->count($where);
- return $data;
- }
- }
|