|
|
|
@ -12,6 +12,7 @@ class InvoiceHead extends Model |
|
|
|
public static function createHead($wechat_user_id, $data) |
|
|
|
{ |
|
|
|
|
|
|
|
if (isset($data['tax_number']) && $data['tax_number'] == 'undefined') $data['tax_number'] = ''; |
|
|
|
$param = [ |
|
|
|
'type' => $data['type'], |
|
|
|
'title' => $data['title'], |
|
|
|
@ -36,4 +37,4 @@ class InvoiceHead extends Model |
|
|
|
return $model->where($param)->value('id'); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|