<?php
/**
 * @copyright   Copyright (c) 2017 https://www.sapixx.com All rights reserved.
 * @license     Licensed (http://www.apache.org/licenses/LICENSE-2.0).
 * @author      pillar<ltmn@qq.com>
 * 采购基金
 */
namespace app\ais\controller;
use app\ais\controller\api\Base;
use app\common\facade\WechatProgram;
use app\ais\model\AisBank;
use app\ais\model\AisBill;
use app\ais\model\AisCouponUser;
use app\ais\model\AisOrder;
use app\ais\model\AisShop;
use app\ais\model\AisShopCoupon;
use app\ais\model\AisShopOrder;
use app\ais\model\AisStoreBill;
use app\ais\model\AisVip;
use app\ais\model\AisVipOrder;
use app\ais\model\AisVipUser;
use app\ais\model\AisInfo;
use app\ais\model\AisInfoOrder;
use app\common\facade\Inform;
use app\common\facade\WechatPay;
use app\ais\model\AisConfig;
use think\facade\Log;
use filter\Filter;
use Exception;

class Test extends Common{


      /**
     * 采购基金
     * @return void
     */
    public function index(int $types = 0){
        $aa = "20200723090806";
        $bb = strtotime($aa);
        code(date('Y-m-d H:i:s',$bb));
        $page = WechatProgram::isTypes($this->member_miniapp_id)->code->getPage();  //小程序页面
        code($page);
        // $result = AisVipOrder::where(['order_no' => '5GGA5097384338190763328'])->find();
        // AisCouponUser::addUserCoupon($result->coupon_ids,$result->uid);
    }
}