|
@@ -4,7 +4,12 @@
|
|
|
namespace app\bug\controller;
|
|
|
|
|
|
|
|
|
-use app\bug\model\WorkAction;use app\bug\model\WorkSubinfo;use app\bug\model\WorkSubscr;use think\App;use think\Exception;use think\facade\Validate;
|
|
|
+use app\bug\model\WorkAction;
|
|
|
+use app\bug\model\WorkSubinfo;
|
|
|
+use app\bug\model\WorkSubscr;
|
|
|
+use think\App;
|
|
|
+use think\Exception;
|
|
|
+use think\facade\Validate;
|
|
|
class Subscribe extends Base{
|
|
|
public function __construct(App $app) {
|
|
|
parent::__construct($app);
|
|
@@ -24,7 +29,7 @@ class Subscribe extends Base{
|
|
|
$data = [
|
|
|
'belong'=>$param['belong'],
|
|
|
'action'=>$param['action'],
|
|
|
- 'role_action'=>WorkAction::where("id","=",$this->roleid)->value("action",""),
|
|
|
+ 'role_action'=>WorkRole::where("id","=",$this->roleid)->value("action",""),
|
|
|
'role_id'=>$this->roleid,
|
|
|
'apply_id'=>$this->uid,
|
|
|
'apply_name'=>$this->uname,
|