|
@@ -256,7 +256,7 @@ class Cash
|
|
|
Dever::db('option/cash')->update($update);
|
|
|
|
|
|
|
|
|
- $fafang = Dever::db('option/bill_fafang')->find(array('status' => 2, 'type' => $info['type'], 'aid' => $info['aid']));
|
|
|
+ $fafang = Dever::db('option/bill_fafang')->find(array('status' => 2, 'type' => $v['type'], 'aid' => $info['aid']));
|
|
|
if ($fafang) {
|
|
|
foreach ($fafang as $v1) {
|
|
|
if ($cash['total'] >= $v1['cash']) {
|