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