dever 6 years ago
parent
commit
4369e46078
2 changed files with 2 additions and 1 deletions
  1. 1 0
      lib/Core.php
  2. 1 1
      lib/Wechat.php

+ 1 - 0
lib/Core.php

@@ -24,6 +24,7 @@ class Core
 
 			$state = Dever::config('base', 'project')->pay_notify;
 			if ($state) {
+				$this->log($state, $param);
 				Dever::load($state, $info['product_id'], $info['uid'], $info['cash'], $order_id, $param['status'], $msg);
 			}
 		} else {

+ 1 - 1
lib/Wechat.php

@@ -43,7 +43,7 @@ class Wechat extends Core
 		$input->SetBody($name);
 		$input->SetAttach($name);
 		$input->SetOut_trade_no($order_id);
-		$input->SetTotal_fee($cash);
+		$input->SetTotal_fee($cash * 100);
 		$input->SetTime_start(date("YmdHis"));
 		$input->SetTime_expire(date("YmdHis", time() + $this->config->GetTimeOut()));
 		//$input->SetGoods_tag($name);