作者 Cool
1 个管道 的构建 失败 耗费 9 秒

update

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group">
<label for="c-password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-password" data-rule="password" class="form-control" name="row[password]" type="password" value="" placeholder="{:__('Leave password blank if dont want to change')}" autocomplete="new-password" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('审核状态')}:</label>
<div class="col-xs-12 col-sm-8">
{:build_radios('row[audit]', ['0'=>'待审核','1'=>'审核通过','2'=>'审核未通过'], $row['audit'])}
... ...
... ... @@ -779,6 +779,9 @@ class Create extends Api
->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0])
->setImageType(QrCode::IMAGE_TYPE_PNG);
$file_path = "folder".$user_id.".png";
if (!file_exists('./upload/folder/')) {
mkdir('./upload/folder/', 0777, true);
}
$qrCode->save(ROOT_PATH . 'public' . DS . 'upload/folder' . DS . $file_path);
$qrcodeurl = request()->domain().'/upload/folder/folder'.$user_id.'.png';
... ... @@ -796,6 +799,9 @@ class Create extends Api
->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0])
->setImageType(QrCode::IMAGE_TYPE_PNG);
$file_path = "file".$user_id.".png";
if (!file_exists('./upload/file/')) {
mkdir('./upload/file/', 0777, true);
}
$qrCode->save(ROOT_PATH . 'public' . DS . 'upload/file' . DS . $file_path);
$qrcodeurl = request()->domain().'/upload/file/file'.$user_id.'.png';
... ...
... ... @@ -43,7 +43,6 @@ class Order extends Api
*/
public function payimage()
{
$qiniu = get_addon_config('qiniu')['cdnurl'];
$user_id = $this->auth->id;
$type = $this->request->param('type');
if(empty($type)){
... ... @@ -51,9 +50,9 @@ class Order extends Api
}
$data = Db::name('payimage')->where('id',1)->find();
if($type == 1){
$this->success('success',['image'=>$qiniu.$data['image']]);
$this->success('success',['image'=>cdnurl($data['image'],true)]);
}else{
$this->success('success',['image'=>$qiniu.$data['aliimage']]);
$this->success('success',['image'=>cdnurl($data['aliimage'],true)]);
}
}
... ...
... ... @@ -16,13 +16,13 @@ return [
// 数据库类型
'type' => Env::get('database.type', 'mysql'),
// 服务器地址
'hostname' => Env::get('database.hostname', 'rm-m5eblhc9o3515i25neo.mysql.rds.aliyuncs.com'),
'hostname' => Env::get('database.hostname', 'localhost'),
// 数据库名
'database' => Env::get('database.database', 'cloud'),
// 用户名
'username' => Env::get('database.username', 'db136s1ehvo1yn73'),
'username' => Env::get('database.username', 'root'),
// 密码
'password' => Env::get('database.password', 'cxz307311SJK'),
'password' => Env::get('database.password', ''),
// 端口
'hostport' => Env::get('database.hostport', ''),
// 连接dsn
... ...
... ... @@ -20,7 +20,7 @@ class Index extends Frontend
$href = '';
$this->browser = 0;
$switch = Db::name('open')->where('id',2)->value('switch');
if($switch == 1) {
if($switch == 1 && !empty($_SERVER['HTTP_USER_AGENT'])) {
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') == true) {
$this->browser = 1;
} else if (strpos($_SERVER['HTTP_USER_AGENT'], 'AlipayClient') == true) {
... ...
... ... @@ -10412,7 +10412,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-11-18 18:45:31 </div>
Generated on 2021-01-25 21:31:21 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">彩云盘</a>
</div>
... ...