|
|
|
@ -324,8 +324,8 @@ class SafeController extends BaseController{
|
|
|
|
|
if($updateRs) {
|
|
|
|
|
|
|
|
|
|
if ($loginPromote['level'] == 1 && $loginPromote['company_id'] > 0 && $loginPromote['withdraw_done'] == 1) {
|
|
|
|
|
M('promote_company', 'tab_')->where(['id' => $loginPromote['company_id']])->update([
|
|
|
|
|
'alipay_account' => $alipayaccount,
|
|
|
|
|
M('promote_company', 'tab_')->where(['id' => $loginPromote['company_id']])->save([
|
|
|
|
|
'ali_account' => $alipayaccount,
|
|
|
|
|
'ali_user' => $alipayrealname,
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
@ -528,10 +528,9 @@ class SafeController extends BaseController{
|
|
|
|
|
$id = get_pid();
|
|
|
|
|
$updateRs = M("promote","tab_")->where(['id'=>$id])->save($data);
|
|
|
|
|
if($updateRs) {
|
|
|
|
|
|
|
|
|
|
if ($loginPromote['level'] == 1 && $loginPromote['company_id'] > 0 && $loginPromote['withdraw_done'] == 1) {
|
|
|
|
|
M('promote_company', 'tab_')->where(['id' => $loginPromote['company_id']])->update([
|
|
|
|
|
'alipay_account' => $alipayaccount,
|
|
|
|
|
M('promote_company', 'tab_')->where(['id' => $loginPromote['company_id']])->save([
|
|
|
|
|
'ali_account' => $alipayaccount,
|
|
|
|
|
'ali_user' => $alipayrealname,
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|