作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

test

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