|
@@ -11,7 +11,6 @@
|
|
|
|
|
|
namespace App\Support\Traits;
|
|
|
|
|
|
-use App\Repositories\Models\Base\Log;
|
|
|
use App\Repositories\Models\Wechat\Account;
|
|
|
use EasyWeChat\Factory;
|
|
|
use EasyWeChat\Kernel\Messages\Image;
|
|
@@ -19,6 +18,10 @@ use Symfony\Component\Cache\Adapter\RedisAdapter;
|
|
|
|
|
|
trait WeChat
|
|
|
{
|
|
|
+ /**
|
|
|
+ * @param $account_name
|
|
|
+ * @return \EasyWeChat\OfficialAccount\Application
|
|
|
+ */
|
|
|
public static function getApp($account_name){
|
|
|
$account = self::getAccount($account_name);
|
|
|
$app = Factory::officialAccount($account['settings']);
|