-
Notifications
You must be signed in to change notification settings - Fork 820
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
349ef25
commit 3aa9568
Showing
329 changed files
with
1,773 additions
and
5,950 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
// +---------------------------------------------------------------------- | ||
// | ShopXO 国内领先企业级B2C免费开源电商系统 | ||
// +---------------------------------------------------------------------- | ||
// | Copyright (c) 2011~2099 http://shopxo.net All rights reserved. | ||
// +---------------------------------------------------------------------- | ||
// | Licensed ( https://opensource.org/licenses/mit-license.php ) | ||
// +---------------------------------------------------------------------- | ||
// | Author: Devil | ||
// +---------------------------------------------------------------------- | ||
namespace app\admin\controller; | ||
|
||
/** | ||
* 二维码生成控制层 | ||
* @author Devil | ||
* @blog http://gong.gg/ | ||
* @version 0.0.1 | ||
* @datetime 2016-12-01T21:51:08+0800 | ||
*/ | ||
class QrCode extends Common | ||
{ | ||
/** | ||
* 二维码显示 | ||
* @author Devil | ||
* @blog http://gong.gg/ | ||
* @version 1.0.0 | ||
* @datetime 2019-04-16T21:52:09+0800 | ||
*/ | ||
public function Index() | ||
{ | ||
if(empty($this->data_request['content'])) | ||
{ | ||
MyViewAssign('msg', MyLang('content_params_empty_tips')); | ||
return MyView('public/tips_error'); | ||
} | ||
(new \base\Qrcode())->View($this->data_request); | ||
} | ||
|
||
/** | ||
* 二维码下载 | ||
* @author Devil | ||
* @blog http://gong.gg/ | ||
* @version 1.0.0 | ||
* @datetime 2019-04-16T21:52:18+0800 | ||
*/ | ||
public function Download() | ||
{ | ||
$ret = (new \base\Qrcode())->Download($this->data_request); | ||
if(!empty($ret) && isset($ret['code']) && $ret['code'] != 0) | ||
{ | ||
MyViewAssign('msg', $ret['msg']); | ||
return MyView('public/tips_error'); | ||
} | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.