|
@@ -162,15 +162,18 @@ class Manage
|
|
|
if ($tixian['type'] == 1) {
|
|
|
$w['where_id'] = $info['mid'];
|
|
|
$w['cash'] = -1*$tixian['ycash'];
|
|
|
+ $w['clear'] = true;
|
|
|
Dever::db('agent/member')->upCash($w);
|
|
|
} elseif ($tixian['type'] == 2) {
|
|
|
$w['where_id'] = $info['shop_id'];
|
|
|
$w['price'] = -1*$tixian['ycash'];
|
|
|
+ $w['clear'] = true;
|
|
|
Dever::db('shop/info')->upCash($w);
|
|
|
Dever::db($table)->update(array('where_id' => $info['id'], 'status' => 3, 'operdate' => time()));
|
|
|
} elseif ($tixian['type'] == 3) {
|
|
|
$w['where_id'] = $info['uid'];
|
|
|
$w['cash'] = -1*$tixian['ycash'];
|
|
|
+ $w['clear'] = true;
|
|
|
Dever::db('passport/user')->upCash($w);
|
|
|
}
|
|
|
|