<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## 示例代碼 ``` <?php /** * +---------------------------------------------------------------------- * | 草帽支付系統 [ WE CAN DO IT JUST THINK ] * +---------------------------------------------------------------------- * | Copyright (c) 2018 http://www.iredcap.cn All rights reserved. * +---------------------------------------------------------------------- * | Licensed ( https://www.apache.org/licenses/LICENSE-2.0 ) * +---------------------------------------------------------------------- * | Author: Brian Waring <BrianWaring98@gmail.com> * +---------------------------------------------------------------------- */ namespace app\common\model; use app\common\library\exception\OrderException; use think\Db; use think\Log; class Orders extends BaseModel { /** * 訂單狀態檢查 * * @author 勇敢的小笨羊 <brianwaring98@gmail.com> * * @param $orderNo * @return Orders|null * @throws OrderException * @throws \think\exception\DbException */ public function checkOrderValid($orderNo) { $order = self::get(['trade_no' => $orderNo]); if (!$order) { throw new OrderException([ 'msg' => 'Order Do Not Exist', 'errorCode' => 200002 ]); } if ($order['status'] === 2) { throw new OrderException([ 'msg' => 'Order Error', 'errorCode' => 200003, 'code' => 400 ]); } return $order; } /** * 獲取平臺訂單 * * @author 勇敢的小笨羊 <brianwaring98@gmail.com> * * @param string $tradeOrderNo 平臺訂單號 * @return Orders|bool|null * @throws \think\exception\DbException */ public function getTradeOrder($tradeOrderNo){ $order = self::get(['trade_no' => $tradeOrderNo]); if ($order) { return $order; } return false; } /** * 獲取商戶訂單 * * @author 勇敢的小笨羊 <brianwaring98@gmail.com> * * @param string $outTradeOrderNo 商戶訂單號 * @return Orders|bool|null * @throws \think\exception\DbException */ public function getOutTradeOrder($outTradeOrderNo){ $order = self::get(['out_trade_no' => $outTradeOrderNo]); if ($order) { return $order; } return false; } /** * 改變訂單狀態 * * @author 勇敢的小笨羊 <brianwaring98@gmail.com> * * @param array $where * @param array $data */ public function changeOrderStatusValue($data = [],$where = []){ self::allowField(true)->save($data, $where); } } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看