|
@@ -171,7 +171,16 @@ class Cash
|
|
|
# 资金划付
|
|
|
public function huafu_commit_api()
|
|
|
{
|
|
|
- $data = Dever::db('pay/yspay_cash')->select(array('status' => 2));
|
|
|
+ $where = array('status' => 2);
|
|
|
+ $account_id = Dever::input('account_id');
|
|
|
+ if ($account_id) {
|
|
|
+ $where['account_id'] = $account_id;
|
|
|
+ }
|
|
|
+ $merchant_id = Dever::input('merchant_id');
|
|
|
+ if ($merchant_id) {
|
|
|
+ $where['merchant_id'] = $merchant_id;
|
|
|
+ }
|
|
|
+ $data = Dever::db('pay/yspay_cash')->select($where);
|
|
|
if ($data) {
|
|
|
foreach ($data as $k => $v) {
|
|
|
$this->up($v['id'], 3);
|