mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-12-26 09:25:58 +08:00
修改一些BUG
This commit is contained in:
@@ -211,7 +211,7 @@ class PayController
|
||||
}
|
||||
}
|
||||
}
|
||||
// 获取收款通知,提交收款订单明细
|
||||
// [定时任务]获取收款明细,提交收款通知[本地版]
|
||||
public function checkPayResult(Request $request)
|
||||
{
|
||||
$req_info = $request->get();
|
||||
|
||||
@@ -65,6 +65,10 @@ class PayManageController extends BaseController
|
||||
$info = $this->request->post();
|
||||
$pid = $this->request->session('pid');
|
||||
$info['pid'] = $pid;
|
||||
$check_acc = PayAccount::where(['account' => $info['account'], 'pid' => $pid])->find();
|
||||
if ($check_acc) {
|
||||
return \json(\backMsg(1, '账号已存在'));
|
||||
}
|
||||
$acc = PayAccount::create($info);
|
||||
if ($acc) {
|
||||
$this->createAccountConfig($acc);
|
||||
|
||||
@@ -120,7 +120,7 @@ class Order extends BaseModel
|
||||
return [];
|
||||
}
|
||||
$patt = PayAccount::find($channel_info->account_id);
|
||||
$channel = ['aid' => $channel_info->account_id, 'cid' => $channel_info->id, 'patt' => $patt->pattern];
|
||||
$channel = ['aid' => $channel_info->account_id, 'cid' => $channel_info->id, 'patt' => $patt->getData('pattern')];
|
||||
PayChannel::update(['last_time' => self::getFormatTime(), 'id' => $channel['cid']]);
|
||||
return $channel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user