作者 lyh

变更数据

... ... @@ -9,7 +9,6 @@
namespace App\Http\Logic\Aside\Geo;
use App\Enums\Common\Code;
use App\Http\Logic\Aside\BaseLogic;
use App\Models\Geo\GeoConf;
use App\Models\Geo\GeoConfirm;
... ...
... ... @@ -102,7 +102,7 @@ class GeoWritingsLogic extends BaseLogic
*/
public function sendWechatMessage()
{
$wechat = $this->param['wechat'] ?? true;
$wechat = $this->param['wechat'] ?? 1;
$this->model->edit(['status'=>2],['status'=>1,'project_id'=>$this->param['project_id']]);
$data = GeoWritings::sendConfirmMessage($this->param['project_id'],$wechat);
if($data === false){
... ...
... ... @@ -38,7 +38,7 @@ class GeoWritingsTaskRequest extends FormRequest
// 'prefix' => 'required|string',
// 'suffix' => 'required|string',
'event_title' => 'required|string',
'event_content' => 'required|string',
// 'event_content' => 'required|string',
'title' => 'required|string|max:120',
'description' => 'required|string',
];
... ...
... ... @@ -77,7 +77,7 @@ class GeoWritings extends Base
* @return bool
* @throws \Exception
*/
public static function sendConfirmMessage($project_id,$wechat = true)
public static function sendConfirmMessage($project_id,$wechat = 1)
{
$friend = ProjectAssociation::where(['project_id' => $project_id])->first();
if (empty($friend)) {
... ...