index.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. namespace app\admin\controller;
  3. use app\admin\model\ReportCode;
  4. use think\Request;
  5. class index
  6. {
  7. /**
  8. * 显示资源列表
  9. *
  10. * @return \think\Response
  11. */
  12. public function index()
  13. {
  14. $report =ReportCode::where(['qrdNo'=>212])->find();
  15. // $report =ReportCode::find(['id'=>1]);
  16. if($report)$report->setField("payNo","222");
  17. // $report->setpayNo('pay');
  18. // $report->setinvNo('inv');
  19. // $report->setlogNo('log');
  20. // $report->settradNo('trad');
  21. // $report->setDzNo('dz');
  22. // $report->sethpNo('hp');
  23. // $report->setreturnInv('returninv');
  24. // $report->setreturnTrad('returntrad');
  25. }
  26. /**
  27. * 显示创建资源表单页.
  28. *
  29. * @return \think\Response
  30. */
  31. public function create()
  32. {
  33. //
  34. }
  35. /**
  36. * 保存新建的资源
  37. *
  38. * @param \think\Request $request
  39. * @return \think\Response
  40. */
  41. public function save(Request $request)
  42. {
  43. //
  44. }
  45. /**
  46. * 显示指定的资源
  47. *
  48. * @param int $id
  49. * @return \think\Response
  50. */
  51. public function read($id)
  52. {
  53. //
  54. }
  55. /**
  56. * 显示编辑资源表单页.
  57. *
  58. * @param int $id
  59. * @return \think\Response
  60. */
  61. public function edit($id)
  62. {
  63. //
  64. }
  65. /**
  66. * 保存更新的资源
  67. *
  68. * @param \think\Request $request
  69. * @param int $id
  70. * @return \think\Response
  71. */
  72. public function update(Request $request, $id)
  73. {
  74. //
  75. }
  76. /**
  77. * 删除指定资源
  78. *
  79. * @param int $id
  80. * @return \think\Response
  81. */
  82. public function delete($id)
  83. {
  84. //
  85. }
  86. }