修改\plugin\admin\app\controller\Crud.php第91行 $where = $request->get(); 修改成 $where = $request->except(['field']); 前端引用示例: const SELECT_API = "/app/admin/data/select?field=id&order=desc";...
在創(chuàng)建表的時(shí)候,可以隨意拖動(dòng)字段,只能一行字段拖動(dòng) rowDrag: {done: function(obj) { syncTableData(); const row_id = obj.row._field_id; // 當(dāng)前id const row_sort = obj.newIndex + 1; // 拖動(dòng)后的排序 const cache =...
plugin/admin/app/model/Admin.php <?php namespace plugin\admin\app\model; use plugin\admin\app\model\Base; /** * @property integer $id ID(主鍵) * @property string $username 用戶名 * @property string $nicknam...
composer require chillerlan/php-qrcode $data = 'id=100&barn_id=125'; $QRCode = new QRCode(); $img_content = $QRCode->render($data); $img_content = str_replace('data:image/...
laravel的orm操作 namespace App\model; use support\Db; use support\Model; class DemoModel extends Model { protected $table="demo"; public function __construct(array $attributes = []) { $...
在控制器里面直接推送 就跟結(jié)合tp框架那樣直接調(diào)用 是需要自己去實(shí)現(xiàn)還是可以用gatewayworker去做? 解決方案: 直接用webman/push 插件,超級(jí)好用 http://www.wtbis.cn/doc/webman/plugin/push.html...