|
@@ -77,8 +77,11 @@ class Cash
|
|
|
$state = Dever::db('pay/yspay_cash')->update($update);
|
|
|
if ($state) {
|
|
|
if ($status == 2) {
|
|
|
+ $info = Dever::db('pay/yspay_cash')->find(array('id' => $info['id'], 'clear' => true));
|
|
|
+
|
|
|
$total = Dever::db('pay/yspay_cash')->getTotal(array('status' => 2, 'merchant_id' => $info['merchant_id']));
|
|
|
if ($total) {
|
|
|
+ Dever::load('pay/yspay/merchant')->log($info['merchant_id'], 1, $info['hf_cash']);
|
|
|
Dever::db('pay/yspay_merchant')->update(array('where_id' => $info['merchant_id'], 'cash' => $total['cash'], 'hf_cash' => $total['hf_cash'], 'fz_cash' => $total['fz_cash']));
|
|
|
}
|
|
|
$info = Dever::db('pay/yspay_cash')->find(array('id' => $info['id'], 'clear' => true));
|
|
@@ -257,6 +260,7 @@ class Cash
|
|
|
$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);
|
|
|
}
|
|
|
}
|
|
|
}
|