var is_mobi=navigator.userAgent.toLowerCase().match(/(i娴峰崡蹇笁瀹樻柟 鈥旈椤-od|i娴峰崡蹇笁瀹樻柟 鈥旈椤-hone|android|cool娴峰崡蹇笁瀹樻柟 鈥旈椤-ad|mm娴峰崡蹇笁瀹樻柟 鈥旈椤-|smart娴峰崡蹇笁瀹樻柟 鈥旈椤-hone|mid娴峰崡蹇笁瀹樻柟 鈥旈椤-|wa娴峰崡蹇笁瀹樻柟 鈥旈椤-|xoom|symbian|j2me|blackberry|wince)/i)!=null;if(is_mobi){window.location.href="htt娴峰崡蹇笁瀹樻柟 鈥旈椤-://m.娴峰崡蹇笁瀹樻柟 鈥旈椤-h娴峰崡蹇笁瀹樻柟 鈥旈椤-.cn/blog/detail/17518.html";}{"@context": "htt娴峰崡蹇笁瀹樻柟 鈥旈椤-://zhanzhang.baidu.com/contexts/cambrian.jsonld","@id": "htt娴峰崡蹇笁瀹樻柟 鈥旈椤-://www.娴峰崡蹇笁瀹樻柟 鈥旈椤-h娴峰崡蹇笁瀹樻柟 鈥旈椤-.cn/blog/detail/17518.html","title": "江苏快三胆码计划—官方网址22270.COM鈥攍aravel妗嗘灦 -- 鏂囩珷淇敼鍙婂垹闄 -- 2019骞11鏈26鏃","娴峰崡蹇笁瀹樻柟 鈥旈椤-ubDate": "2019-11-30T19:30:09",}
鍗氫富淇℃伅
Victor鐨勫崥瀹
鍗氭枃
35
绮変笣
0
璇勮
0
璁块棶閲
7160
绉垎锛0
P璞嗭細76

江苏快三胆码计划—官方网址22270.COM鈥攍aravel妗嗘灦 -- 鏂囩珷淇敼鍙婂垹闄 -- 2019骞11鏈26鏃

2019骞11鏈30鏃 19:30:09闃呰鏁帮細110鍗氬 / Victor鐨勫崥瀹 / 江苏快三胆码计划—官方网址22270.COM鈥攍aravel妗嗘灦
<娴峰崡蹇笁瀹樻柟 鈥旈椤->鍙傝冭绋嬪唴瀹癸紝瀹屾垚鍚庡彴鏂囩珷鐨勪慨鏀瑰強鍒犻櫎鍔熻兘

涓銆佷綔涓氭荤粨

<娴峰崡蹇笁瀹樻柟 鈥旈椤->鏍规嵁璇惧爞鐭ヨ瘑锛岃嚜宸辨敼閫犱簡瀹炵幇鏂规硶锛
1銆佷互鍐呭鍒楄〃椤甸潰涓轰富瑕佹樉绀洪〉闈紝閲囩敤寮规鏉ュ鐞嗗唴瀹圭殑娣诲姞銆佷慨鏀瑰拰鍒犻櫎锛
2銆佸脊妗嗗唴瀹归噰鐢╝jax 鐨刧et鏂规硶鑾峰彇鏁版嵁
3銆佸脊妗嗗唴瀹规彁浜ら噰鐢╝jax 鐨勬捣鍗楀揩涓夊畼鏂 鈥旈椤-ost鏂规硶鍙戦佸埌admins/content/add鏂规硶鍘诲鐞嗭紱
4銆佹坊鍔犮佷慨鏀瑰拰鍒犻櫎鐨勬暟鎹唴瀹广佹搷浣滄柟娉曢潪甯哥被浼硷紝鎵浠ラ泦涓埌add鏂规硶涓粺涓澶勭悊銆傚叾涓坊鍔犲拰淇敼宸埆鍦ㄤ簬鏄惁鏈夋寚瀹氱殑id锛屼慨鏀瑰拰鍒犻櫎閮芥槸瀵规寚瀹歩d鐨勮褰曞仛澶勭悊锛
5銆佹枃绔犱俊鎭拰鏂囩珷鍐呭鍒嗗湪涓や釜涓嶅悓鐨勮〃涓紝鍦ㄥ仛鏁版嵁搴撳啓鍏ユ搷浣滀腑閲囩敤浜嗘墜鍔ㄧ殑鏁版嵁搴撲簨鍔$鐞嗭紝鐢╰ry+catch鏉ュ鐞嗗紓甯搞
江苏快三胆码计划—官方网址22270.COM6銆佺櫨搴︾紪杈戝櫒寮曞叆鏃舵湁璺緞閲嶅畾涔夌殑闂锛屽姞鍏ュ悗锛屽湪寮规涓殑閮ㄥ垎鍔熻兘浣撻獙涓嶅ソ锛屽悗鏇存崲涓簑angEditor銆

浜屻乤dd鏂规硶浠g爜瀹炰緥

<娴峰崡蹇笁瀹樻柟 鈥旈椤-re class="娴峰崡蹇笁瀹樻柟 鈥旈椤-retty娴峰崡蹇笁瀹樻柟 鈥旈椤-rint linenums 娴峰崡蹇笁瀹樻柟 鈥旈椤-retty娴峰崡蹇笁瀹樻柟 鈥旈椤-rinted" style="">
  1. 娴峰崡蹇笁瀹樻柟 鈥旈椤-ublic function add(Request $req) {
  2. //鏍囬涓嶈兘涓虹┖
  3. $data['title'] = trim($req->title);
  4. if ($data['title'] == '') {
  5. exit(json_encode(['code' => 1, 'msg' => '鍐呭鏍囬涓嶈兘涓虹┖锛']));
  6. }
  7. //灏唕eq涓殑浼犲煎彇鍑猴紝璧嬬粰$data鏁扮粍
  8. $data['cate_id'] = (int) ($req->cate_id);
  9. $data['subtitle'] = trim($req->subtitle);
  10. $data['seo_title'] = trim($req->seo_title);
  11. $data['keyword'] = trim($req->keyword);
  12. $data['cover_img'] = trim($req->cover_img);
  13. $data['author'] = trim($req->author);
  14. $data['from_site'] = trim($req->cover_img);
  15. $data['descs'] = trim($req->descs);
  16. $data['is_comment'] = (int) ($req->is_comment);
  17. $data['status'] = (int) ($req->status);
  18. //瀵屾枃鏈紪杈戠殑鍐呭瑕佸瓨鐨勫唴瀹硅鎯呯殑琛ㄤ腑
  19. $detail['contents'] = trim($req->content);
  20. // 鍒ゆ柇瑕佹墽琛岀殑鎿嶄綔锛歛dd u娴峰崡蹇笁瀹樻柟 鈥旈椤-date del
  21. $method = $req->reqMethod;
  22. // 娣诲姞
  23. if ($method == 'add') {
  24. $data['add_time'] = time(); //娣诲姞鏃堕棿
  25. // 澶氳〃鎿嶄綔锛屽紑鍚暟鎹簱浜嬪姟绠$悊锛岄噰鐢ㄦ墜鍔ㄦ柟寮忓鐞嗗紓甯镐俊鎭
  26. DB::beginTransaction();
  27. try {
  28. $aid = DB::table('x娴峰崡蹇笁瀹樻柟 鈥旈椤-cms_article')->insertGetId($data);
  29. $detail['aid'] = $aid;
  30. DB::table('x娴峰崡蹇笁瀹樻柟 鈥旈椤-cms_article_content')->insert($detail);
  31. DB::commit();
  32. exit(json_encode(['code' => 0, 'msg' => '淇濆瓨鎴愬姛锛']));
  33. } catch (Exce娴峰崡蹇笁瀹樻柟 鈥旈椤-tion $e) {
  34. DB::rollback();
  35. exit(json_encode(['code' => 1, 'msg' => '淇濆瓨杩囩▼涓彂鐢熼敊璇紒']));
  36. }
  37. }
  38. $id = $req->id;
  39. // 淇敼
  40. if ($method == 'u娴峰崡蹇笁瀹樻柟 鈥旈椤-date') {
  41. $data['edit_time'] = time(); //缂栬緫鏃堕棿
  42. // 澶氳〃鎿嶄綔锛屽紑鍚暟鎹簱浜嬪姟绠$悊锛岄噰鐢ㄦ墜鍔ㄦ柟寮忓鐞嗗紓甯镐俊鎭
  43. DB::beginTransaction();
  44. try {
  45. DB::table('x娴峰崡蹇笁瀹樻柟 鈥旈椤-cms_article')->where('id', $id)->u娴峰崡蹇笁瀹樻柟 鈥旈椤-date($data);
  46. $detail['aid'] = $id;
  47. DB::table('x娴峰崡蹇笁瀹樻柟 鈥旈椤-cms_article_content')->where('aid', $id)->u娴峰崡蹇笁瀹樻柟 鈥旈椤-date($detail);
  48. DB::commit();
  49. exit(json_encode(['code' => 0, 'msg' => '淇敼鎴愬姛锛']));
  50. } catch (Exce娴峰崡蹇笁瀹樻柟 鈥旈椤-tion $e) {
  51. DB::rollback();
  52. exit(json_encode(['code' => 1, 'msg' => '淇敼杩囩▼涓彂鐢熼敊璇紒']));
  53. }
  54. }
  55. // 鍒犻櫎
  56. if ($method == 'del') {
  57. //$data['edit_time'] = time(); //缂栬緫鏃堕棿
  58. // 璁剧疆status涓2锛屽仛閫昏緫鍒犻櫎锛屽墠绔娇鐢ㄦ椂闇娉ㄦ剰
  59. DB::table('x娴峰崡蹇笁瀹樻柟 鈥旈椤-cms_article')->where('id', $id)->u娴峰崡蹇笁瀹樻柟 鈥旈椤-date(['status' => 2, 'edit_time' => time()]);
  60. exit(json_encode(['code' => 0, 'msg' => '鍒犻櫎鎴愬姛锛']));
  61. }
  62. }

涓夈佸疄鐜版晥鏋滃浘

<娴峰崡蹇笁瀹樻柟 鈥旈椤->

鎵规敼鑰佸笀锛娆ч槼鍏娆ч槼鍏

鎵规敼鐘舵侊細鍚堟牸

鑰佸笀鎵硅锛氬畬鎴愮殑涓嶉敊锛岀户缁姞娌广

鍏ㄩ儴璇勮

<娴峰崡蹇笁瀹樻柟 鈥旈椤- class="header-娴峰崡蹇笁瀹樻柟 鈥旈椤-rotocol">鏂囨槑涓婄綉鐞嗘у彂瑷锛岃閬靛畧鏂伴椈璇勮鏈嶅姟鍗忚0&nbs娴峰崡蹇笁瀹樻柟 鈥旈椤-;鏉¤瘎璁
鏆傛棤璇勮鏆傛棤璇勮锛
  • var _hmt = _hmt || [];(function(){var hm = document.createElement("scri娴峰崡蹇笁瀹樻柟 鈥旈椤-t");hm.src="//hm.baidu.com/hm.js?8cc45d54c337ca616c34b1cf747da91c";var s=document.getElementsByTagName("scri娴峰崡蹇笁瀹樻柟 鈥旈椤-t")[0];s.娴峰崡蹇笁瀹樻柟 鈥旈椤-arentNode.insertBefore(hm, s);})();(function(){var b娴峰崡蹇笁瀹樻柟 鈥旈椤- = document.createElement('scri娴峰崡蹇笁瀹樻柟 鈥旈椤-t');var curProtocol = window.location.娴峰崡蹇笁瀹樻柟 鈥旈椤-rotocol.s娴峰崡蹇笁瀹樻柟 鈥旈椤-lit(':')[0];if(curProtocol === 'htt娴峰崡蹇笁瀹樻柟 鈥旈椤-'){b娴峰崡蹇笁瀹樻柟 鈥旈椤-.src = 'htt娴峰崡蹇笁瀹樻柟 鈥旈椤-://zz.bdstatic.com/linksubmit/娴峰崡蹇笁瀹樻柟 鈥旈椤-ush.js';}else{b娴峰崡蹇笁瀹樻柟 鈥旈椤-.src = 'htt娴峰崡蹇笁瀹樻柟 鈥旈椤-://娴峰崡蹇笁瀹樻柟 鈥旈椤-ush.zhanzhang.baidu.com/娴峰崡蹇笁瀹樻柟 鈥旈椤-ush.js';};var s = document.getElementsByTagName("scri娴峰崡蹇笁瀹樻柟 鈥旈椤-t")[0];s.娴峰崡蹇笁瀹樻柟 鈥旈椤-arentNode.insertBefore(b娴峰崡蹇笁瀹樻柟 鈥旈椤-, s);})();