|
@@ -241,7 +241,7 @@ class Cash
|
|
|
$cash = Dever::param('cash', $data);
|
|
|
$merchant = Dever::db('pay/yspay_merchant')->one($merchant_id);
|
|
|
if ($merchant) {
|
|
|
- $this->tixian_act();
|
|
|
+ $this->tixian_act($merchant, $cash);
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
@@ -254,13 +254,13 @@ class Cash
|
|
|
Dever::alert('余额不足');
|
|
|
}
|
|
|
|
|
|
- $info['merchant_id'] = $merchant_id;
|
|
|
+ $info['merchant_id'] = $merchant['id'];
|
|
|
$info['hf_cash'] = $cash;
|
|
|
$info['order_num'] = Dever::order('TX');
|
|
|
$status = $this->huafu_act($info);
|
|
|
if ($status == 1) {
|
|
|
- Dever::db('pay/yspay_merchant')->updateTxCash(array('where_id' => $merchant_id, 'hf_tx_cash' => $cash));
|
|
|
- Dever::load('pay/yspay/merchant')->log($merchant['merchant_id'], 3, $cash);
|
|
|
+ Dever::db('pay/yspay_merchant')->updateTxCash(array('where_id' => $merchant['id'], 'hf_tx_cash' => $cash));
|
|
|
+ Dever::load('pay/yspay/merchant')->log($merchant['id'], $merchant['account_id'], 3, $cash);
|
|
|
}
|
|
|
}
|
|
|
}
|