|
@@ -62,9 +62,12 @@ class Help extends BaseModel
|
|
|
{
|
|
|
self::beginTrans();
|
|
|
try {
|
|
|
- $res = self::create($where);
|
|
|
- $where['help_id'] = $res['id'];
|
|
|
- $res1 = HelpExt::create($where);
|
|
|
+ list($help['cid'],$help['category_id'],$help['user_id'],$help['full_name'],$help['contact'],$help['id_card'],$help['title'],$help['info'],$help['userimage'],$help['userimages'],$help['status']) =
|
|
|
+ [$where['cid'],$where['category_id'],$where['user_id'],$where['full_name'],$where['contact'],$where['id_card'],$where['title'],$where['info'],$where['userimage'],$where['userimages'],0];
|
|
|
+ $res = self::create($help);
|
|
|
+ list($HelpExt['cid'],$HelpExt['help_id'],$HelpExt['sex'],$HelpExt['politics'],$HelpExt['birthday'],$HelpExt['address'],$HelpExt['company'],$HelpExt['unit_nature'],$HelpExt['monthly_income'],$HelpExt['annual_household_income'],$HelpExt['annual_household_income_average'],$HelpExt['identity'],$HelpExt['marriage'],$HelpExt['medical_insurance'],$HelpExt['object_features'],$HelpExt['reason']) =
|
|
|
+ [$where['cid'],$res['id'],$where['sex'],$where['politics'],$where['birthday'],$where['address'],$where['company'],$where['unit_nature'],$where['monthly_income'],$where['annual_household_income'],$where['annual_household_income_average'],$where['identity'],$where['marriage'],$where['medical_insurance'],$where['object_features'],$where['reason']];
|
|
|
+ $res1 = HelpExt::create($HelpExt);
|
|
|
foreach ($where['family'] as $v)
|
|
|
{
|
|
|
$v['cid'] = $where['cid'];
|
|
@@ -79,7 +82,7 @@ class Help extends BaseModel
|
|
|
|
|
|
}catch (Exception $e)
|
|
|
{
|
|
|
- self::setErrorInfo($e->getMessage(),true);
|
|
|
+ self::setErrorInfo($e->getLine().'--'.$e->getMessage(),true);
|
|
|
}
|
|
|
}
|
|
|
public static function lst($where)
|