| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace addons\WechatVideoShop\common\service;
- use addons\WechatVideoShop\common\models\WechatVideoShopGoods;
- use addons\WechatVideoShop\common\models\WechatVideoShopOrder;
- use common\enums\StatusEnum;
- use common\traits\ErrorTrait;
- class OrderService
- {
- use ErrorTrait;
- public function getOrderList($mall_id, $param)
- {
- try {
- $params['where'] = [
- ['mall_id' => $mall_id],
- ['status' => [StatusEnum::DISABLED, StatusEnum::ENABLED]]
- ];
- $params['limit'] = $param['limit'] ?? 15;
- $params['page'] = $param['page'] ?? 1;
- $list = WechatVideoShopOrder::listPage($params);
- if ($list === false) throw new \Exception(WechatVideoShopOrder::getStaticError());
-
- foreach ($list['list'] as &$val) {
-
- }
- unset($val);
- return $list;
- } catch (\Exception $e) {
- $this->setError($e->getMessage());
- return false;
- }
- }
- }
|