|
@@ -340,12 +340,24 @@ class Human extends MobileBaseController
|
|
|
if (empty($enterprise)) {
|
|
|
ajax_return(1, '该手机号未报名,请确认手机号');
|
|
|
} else {
|
|
|
- $enterprise->open_id = session('mobile.human.open_id');
|
|
|
- $enterprise->save();
|
|
|
+ HumanEnterpriseApplyModel::create([
|
|
|
+ 'open_id' => session('mobile.human.open_id'),
|
|
|
+ 'name' => $enterprise->name,
|
|
|
+ 'join' => $enterprise->join,
|
|
|
+ 'join_mobile' => $enterprise->join_mobile,
|
|
|
+ 'cooperate' => $enterprise->cooperate,
|
|
|
+ 'status' => HumanEnterpriseApplyModel::STATUS_PASS,
|
|
|
+ ]);
|
|
|
}
|
|
|
} else {
|
|
|
- $institution->open_id = session('mobile.human.open_id');
|
|
|
- $institution->save();
|
|
|
+ HumanInstitutionApplyModel::create([
|
|
|
+ 'open_id' => session('mobile.human.open_id'),
|
|
|
+ 'name' => $institution->name,
|
|
|
+ 'join' => $institution->join,
|
|
|
+ 'join_mobile' => $institution->join_mobile,
|
|
|
+ 'cooperate' => $institution->cooperate,
|
|
|
+ 'status' => HumanInstitutionApplyModel::STATUS_PASS,
|
|
|
+ ]);
|
|
|
}
|
|
|
|
|
|
ajax_return();
|
|
@@ -353,6 +365,7 @@ class Human extends MobileBaseController
|
|
|
|
|
|
public function seeme()
|
|
|
{
|
|
|
+ $this->_listValidate();
|
|
|
return view();
|
|
|
}
|
|
|
|