|  | @@ -49,7 +49,7 @@ class Money extends Common
 | 
	
		
			
				|  |  |          $type = $this->request->request("type", "wechat");// 充值类型:wechat:微信支付,alipay:支付宝支付
 | 
	
		
			
				|  |  |          $method = $this->request->request("method", "miniapp");// 支付方式:app:app支付,miniapp:小程序支付
 | 
	
		
			
				|  |  |          $openid = $this->request->request("openid", "");// 非小程序支付无需传值
 | 
	
		
			
				|  |  | -        $params_from = $this->request->request("params_from",2);// 平台参数
 | 
	
		
			
				|  |  | +        $params_from = $this->request->request("params_from",1);// 平台参数充值平台:1=安卓,2=ios
 | 
	
		
			
				|  |  |          $amounts = $this->request->request("amounts",0);// 自定义金额
 | 
	
		
			
				|  |  |          if (!$rechar_id && empty($amounts)) {
 | 
	
		
			
				|  |  |              $this->error(__('Invalid parameters'));
 | 
	
	
		
			
				|  | @@ -114,8 +114,6 @@ class Money extends Common
 | 
	
		
			
				|  |  |          if ($payTest == 1) {
 | 
	
		
			
				|  |  |              $money = 0.01;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        $passbackparams = ['params_from' => $params_from];
 | 
	
		
			
				|  |  | -        $passbackparams = json_encode($passbackparams);
 | 
	
		
			
				|  |  |          $params = [
 | 
	
		
			
				|  |  |              'type'      => $type,
 | 
	
		
			
				|  |  |              'orderid'   => $out_trade_no,
 | 
	
	
		
			
				|  | @@ -125,7 +123,6 @@ class Money extends Common
 | 
	
		
			
				|  |  |              'openid'    => $openid,
 | 
	
		
			
				|  |  |              'notifyurl' => $notifyurl,
 | 
	
		
			
				|  |  |              'returnurl' => $returnurl,
 | 
	
		
			
				|  |  | -            'passback_params' => urlencode($passbackparams),
 | 
	
		
			
				|  |  |          ];
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          $result = Service::submitOrder($params);
 |