| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * Niushop商城系统 - 团队十年电商经验汇集巨献!
- * =========================================================
- * Copy right 2019-2029 上海牛之云网络科技有限公司, 保留所有权利。
- * ----------------------------------------------
- * 官方网址: https://www.niushop.com
- * =========================================================
- */
- namespace addon\pointexchange\event;
- use addon\pointexchange\model\Order;
- /**
- * 活动展示
- */
- class OrderPay
- {
-
- /**
- * 活动展示
- * @return multitype:number unknown
- */
- public function handle($param)
- {
- if ($param['promotion_type'] == 'pointexchange') {
- $order_model = new Order();
- $order_info_result = $order_model->getOrderInfo([ [ 'relate_order_id', '=', $param['order_id'] ] ]);
- if ($order_info_result['code'] < 0) {
- return $order_info_result;
- }
- $res = $order_model->orderPay($order_info_result['data']);
- return $res;
- }
- }
- }
|