<?php
/** 小程序微信支付
 * @Copyright (C) 2016 汉潮 All rights reserved.
 * @License http://www.hanchao9999.com
 * @Author xiaoq <xiaoq@570035208.com>
 */
namespace Wxsmall\Controller;
class WxsmallpayController extends BaseController {
	public function _initialize(){
		parent::_initialize ();
	}
	/**
	 * 小程序微信支付统一下单，调取预支付信息接口
	 */
	public function pay_done(){
		$param = I('param.');
		$user_info=$this->checkuserauth();
        $param['uid']=$user_info['id'];
		$result = D('Wxsmallpay')->pay_done($param);
		$this->ajaxReturn($result);
	}
    public function pay_moneydone(){
        $param = I('param.');
        $user_info=$this->checkuserauth();
        $param['uid']=$user_info['id'];
        $result = D('Wxsmallpay')->pay_moneydone($param);
        $this->ajaxReturn($result);
    }
}