public function wechat_refund($order_id)
{
$order_id = input('post.order_id');
$data = Db::name('ns_order')->where('order_id',$order_id)->field('order_id,transaction_id,out_trade_no,order_money')->find();
$data['refund_require_money'] = Db::name('ns_order_goods')->where('order_id',$order_id)->value('refund_require_money');
$url = "https://api.mch.weixin.qq.com/secapi/pay/refund";
$key = "AKJFJDJHJ665121opkolk8890021mkkl";
$arr = array();
$arr['appid'] = "wx3da9056cdd06e96c";
$arr['mch_id'] = "1498743542";
$arr['nonce_str'] = $this->getNonceStr(20);//随机字符串,不长于32位
$arr['transaction_id'] = $data['transaction_id'];//商户订单号
$arr['out_refund_no'] = $data['out_trade_no'];//商户退款订单号
// $arr['total