后台银行卡绑定申请审核后消息推送
This commit is contained in:
parent
70e58fe432
commit
790166199e
@ -7,6 +7,7 @@ use app\common\logic\BaseLogic;
|
|||||||
use app\common\model\auth\Admin;
|
use app\common\model\auth\Admin;
|
||||||
use app\common\model\bank\Bank;
|
use app\common\model\bank\Bank;
|
||||||
use app\common\model\merchant\MerchantBank;
|
use app\common\model\merchant\MerchantBank;
|
||||||
|
use app\common\service\JgPushService;
|
||||||
use think\facade\Db;
|
use think\facade\Db;
|
||||||
|
|
||||||
|
|
||||||
@ -30,6 +31,11 @@ class MerchantBankLogic extends BaseLogic
|
|||||||
self::setError("已审核,无需重新审核");
|
self::setError("已审核,无需重新审核");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if(!empty($data['supplier_id'])){
|
||||||
|
$user_auth_shop = Db::name('user_auth_shop')->field('jg_register_id')->where('pid',$data['supplier_id'])->where('type',2)->findOrEmpty();
|
||||||
|
}else{
|
||||||
|
$user_auth_shop = Db::name('user_auth_shop')->field('jg_register_id')->where('pid',$data['mer_id'])->where('type',1)->findOrEmpty();
|
||||||
|
}
|
||||||
Db::startTrans();
|
Db::startTrans();
|
||||||
try {
|
try {
|
||||||
MerchantBank::where('id',$params['id'])->update([
|
MerchantBank::where('id',$params['id'])->update([
|
||||||
@ -38,6 +44,9 @@ class MerchantBankLogic extends BaseLogic
|
|||||||
'admin_id' => $admin_id,
|
'admin_id' => $admin_id,
|
||||||
'update_time' => time()
|
'update_time' => time()
|
||||||
]);
|
]);
|
||||||
|
if(!empty($user_auth_shop['jg_register_id'])){
|
||||||
|
(new JgPushService()) -> sendMsg($user_auth_shop['jg_register_id'],'您的银行卡绑定申请'.($params['is_check']==1?'已审核通过':'审核未通过'),'/pages/quote/supplierFinancialy');
|
||||||
|
}
|
||||||
Db::commit();
|
Db::commit();
|
||||||
return true;
|
return true;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user