...
|
...
|
@@ -290,6 +290,7 @@ class Company extends Api |
|
|
*/
|
|
|
public function inviteCode()
|
|
|
{
|
|
|
halt($this->company_id);
|
|
|
$invite_code = $this->model->where('id',$this->company_id)->value('invite_code');
|
|
|
$this->success('成功',compact('invite_code'));
|
|
|
}
|
...
|
...
|
@@ -347,8 +348,7 @@ class Company extends Api |
|
|
->setForegroundColor(['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0])
|
|
|
->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0])
|
|
|
->setLabelFontSize(16)
|
|
|
->setImageType(QrCode::IMAGE_TYPE_PNG)
|
|
|
;
|
|
|
->setImageType(QrCode::IMAGE_TYPE_PNG);
|
|
|
$dir = 'uploads/company';
|
|
|
if (!file_exists($dir)){
|
|
|
mkdir($dir,0777,true);
|
...
|
...
|
|