You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
641 B
PHP
28 lines
641 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class LiuYanController
|
|
{
|
|
public function Mp_Create(){
|
|
$info = request('info');
|
|
if(empty($info['content'])){
|
|
return \Yz::echoError1('请输入留言内容');
|
|
}
|
|
$i=DB::table('liu_yan')->insert([
|
|
'content'=>$info['content'],
|
|
'openid'=>$info['openid'],
|
|
|
|
]);
|
|
if($i){
|
|
return \Yz::Return(true,'留言成功');
|
|
}
|
|
return \Yz::echoError1('留言失败');
|
|
}
|
|
public function Mp_InsertInfo(){
|
|
return \Yz::Return(true,'填写成功');
|
|
}
|
|
}
|